#CEC302

#cec302 ≈ Citrine

  • yellow
  • Lightness: medium
  • Saturation: vivid
  • Warm

#cec302 is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 80.78% red, 76.47% green and 0.78% blue; printed in CMYK it uses 0% cyan, 5.34% magenta, 99.03% yellow and 19.22% black. Its hue angle is 56.76°, with 98.08% saturation and 40.78% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and call-to-action buttons. Black text on this color reaches a contrast ratio of 11.43:1 (WCAG AAA). The closest named color is Citrine (#e4d00a), ΔE 4.23.

Description generated from the measured properties of this color.

Conversions of #cec302 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#cccc00
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.5216

Readable text 1.84:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 11.43:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #bfbfbf ≈ 0.003% of males
Achromatomaly #c5c198 ≈ 0.001% of males
Protanopia #d5bb00 ≈ 1.01% of males
Deuteranopia #d9c223 ≈ 1.27% of males
Tritanopia #deb5a6 ≈ 0.0001% of males
Protanomaly #d2bf00 ≈ 1.08% of males
Deuteranomaly #d5c21a ≈ 4.63% of males
Tritanomaly #d8bb83 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-cec302 {
  color: #cec302;
}
Background
.bg-cec302 {
  background-color: #cec302;
  color: #000000;
}
Border
.border-cec302 {
  border: 2px solid #cec302;
}
CSS variables
:root {
  --color-primary: #cec302;
  --color-primary-rgb: 206 195 2;
  --color-primary-hsl: 57 98% 41%;
}
Gradient
.gradient-cec302 {
  background: linear-gradient(135deg, #cec302, #73ce02);
}
Colored shadow
.shadow-cec302 {
  box-shadow: 0 8px 24px rgb(206 195 2 / 0.35);
}

Citrine
#cec302  rgb(206, 195, 2)  hsl(57, 98%, 41%)  Citrine
#020dce  rgb(2, 13, 206)  hsl(237, 98%, 41%)  Medium Blue
#02cec3  rgb(2, 206, 195)  hsl(177, 98%, 41%)  Medium Turquoise
#c302ce  rgb(195, 2, 206)  hsl(297, 98%, 41%)  Electric Purple