#CEC742#CEC742

#CEC742 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.2% C 0.150 H 106.3°. Best body text is #000000 at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#CEC742
RGBrgb(206, 199, 66)
HSLhsl(57, 59%, 53%)
HSVhsv(57, 68%, 81%)
CMYKcmyk(0%, 3.4%, 68%, 19.2%)
CIE-LABlab(78.67, -13.07, 64.30)
CIE-LCHlch(78.67, 65.62, 101.49°)
OKLaboklab(81.17% -0.0421 0.1438)
OKLCHoklch(81.17% 0.15 106.3)
XYZxyz(46.8622, 54.3636, 13.1779)
Luminance0.5436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC742 #4249CE
analogous
#CE8142 #CEC742 #8FCE42
triadic
#CEC742 #42CEC7 #C742CE
tetradic
#CEC742 #42CE81 #4249CE #CE428F
square
#CEC742 #42CE81 #4249CE #CE428F
split-complementary
#CEC742 #428FCE #8142CE
monochromatic
#77721F #A7A12B #CEC742 #DBD573 #E7E4A3

Accessibility & contrast

On white

1.77
#CEC742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.87
#CEC742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC742
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC742#FFFFFF#000000##000000
##CEC7421.001.7711.8711.87
#FFFFFF1.771.0021.0021.00
#00000011.8721.001.001.00
##00000011.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DBC54B
Tritanopia (blue-blind)
#DDBAAC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec742;
/* rgb */ color: rgb(206, 199, 66);
/* oklch */ color: oklch(81.2% 0.150 106.3);
Tailwind
colors: {
  custom: {
    50: '#e0d77e',
    500: '#cec742',
    950: '#000000',
  },
}
SCSS
$custom: #cec742;
$custom-light: #e0d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec742",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 57,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.81166,
    "c": 0.14983,
    "h": 106.3
  },
  "luminance": 0.54362
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC742

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

Preview Lab → · Contrast checker → · Palette generator →

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