#CEC642#CEC642

#CEC642 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.0% C 0.149 H 105.9°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#CEC642
RGBrgb(206, 198, 66)
HSLhsl(57, 59%, 53%)
HSVhsv(57, 68%, 81%)
CMYKcmyk(0%, 3.9%, 68%, 19.2%)
CIE-LABlab(78.41, -12.57, 64.03)
CIE-LCHlch(78.41, 65.25, 101.11°)
OKLaboklab(80.95% -0.0407 0.1432)
OKLCHoklch(80.95% 0.149 105.9)
XYZxyz(46.6328, 53.9050, 13.1015)
Luminance0.5390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC642 #424ACE
analogous
#CE8042 #CEC642 #90CE42
triadic
#CEC642 #42CEC6 #C642CE
tetradic
#CEC642 #42CE80 #424ACE #CE4290
square
#CEC642 #42CE80 #424ACE #CE4290
split-complementary
#CEC642 #4290CE #8042CE
monochromatic
#77721F #A7A02B #CEC642 #DBD573 #E7E3A3

Accessibility & contrast

On white

1.78
#CEC642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#CEC642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC642
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC642#FFFFFF#000000##000000
##CEC6421.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#DAC54B
Tritanopia (blue-blind)
#DDB9AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec642;
/* rgb */ color: rgb(206, 198, 66);
/* oklch */ color: oklch(81.0% 0.149 105.9);
Tailwind
colors: {
  custom: {
    50: '#e0d77e',
    500: '#cec642',
    950: '#000000',
  },
}
SCSS
$custom: #cec642;
$custom-light: #e0d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec642",
  "rgb": {
    "r": 206,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 56.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.80953,
    "c": 0.14889,
    "h": 105.9
  },
  "luminance": 0.53903
}

Semantic roles & 50–950 ramp

primary
#CEC642
secondary
#35397F
accent
#4FE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC642

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

Preview Lab → · Contrast checker → · Palette generator →

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