#CECC2F#CECC2F

#CECC2F is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.1% C 0.165 H 108.8°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#CECC2F
RGBrgb(206, 204, 47)
HSLhsl(59, 63%, 50%)
HSVhsv(59, 77%, 81%)
CMYKcmyk(0%, 1%, 77.2%, 19.2%)
CIE-LABlab(79.91, -16.43, 71.95)
CIE-LCHlch(79.91, 73.80, 102.86°)
OKLaboklab(82.11% -0.0533 0.1566)
OKLCHoklch(82.11% 0.165 108.8)
XYZxyz(47.5614, 56.5143, 11.0918)
Luminance0.5651 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CECC2F #2F31CE
analogous
#CE7C2F #CECC2F #81CE2F
triadic
#CECC2F #2FCECC #CC2FCE
tetradic
#CECC2F #2FCE7C #2F31CE #CE2F81
square
#CECC2F #2FCE7C #2F31CE #CE2F81
split-complementary
#CECC2F #2F81CE #7C2FCE
monochromatic
#6A6918 #9C9B24 #CECC2F #DBD960 #E6E591

Accessibility & contrast

On white

1.71
#CECC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.30
#CECC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CECC2F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CECC2F#FFFFFF#000000##000000
##CECC2F1.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC300
Deuteranopia (green-blind)
#DFC83D
Tritanopia (blue-blind)
#DDBEAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cecc2f;
/* rgb */ color: rgb(206, 204, 47);
/* oklch */ color: oklch(82.1% 0.165 108.8);
Tailwind
colors: {
  custom: {
    50: '#e1db75',
    500: '#cecc2f',
    950: '#000000',
  },
}
SCSS
$custom: #cecc2f;
$custom-light: #e1db75;
$custom-dark: #000000;
JSON
{
  "hex": "#cecc2f",
  "rgb": {
    "r": 206,
    "g": 204,
    "b": 47
  },
  "hsl": {
    "h": 59.245,
    "s": 62.846,
    "l": 49.608
  },
  "oklch": {
    "l": 0.82114,
    "c": 0.16545,
    "h": 108.8
  },
  "luminance": 0.56513
}

Semantic roles & 50–950 ramp

primary
#CECC2F
secondary
#2D2E74
accent
#44E642
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CECC2F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CECC2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva