#CFC842#CFC842

#CFC842 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.5% C 0.151 H 106.4°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#CFC842
RGBrgb(207, 200, 66)
HSLhsl(57, 59%, 54%)
HSVhsv(57, 68%, 81%)
CMYKcmyk(0%, 3.4%, 68.1%, 18.8%)
CIE-LABlab(79.02, -13.16, 64.68)
CIE-LCHlch(79.02, 66.00, 101.50°)
OKLaboklab(81.47% -0.0424 0.1446)
OKLCHoklch(81.47% 0.151 106.4)
XYZxyz(47.3716, 54.9690, 13.2679)
Luminance0.5497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC842 #4249CF
analogous
#CF8142 #CFC842 #8FCF42
triadic
#CFC842 #42CFC8 #C842CF
tetradic
#CFC842 #42CF81 #4249CF #CF428F
square
#CFC842 #42CF81 #4249CF #CF428F
split-complementary
#CFC842 #428FCF #8142CF
monochromatic
#78741F #A9A32B #CFC842 #DBD673 #E8E4A4

Accessibility & contrast

On white

1.75
#CFC842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.99
#CFC842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC842
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC842#FFFFFF#000000##000000
##CFC8421.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12E
Deuteranopia (green-blind)
#DCC64B
Tritanopia (blue-blind)
#DEBBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc842;
/* rgb */ color: rgb(207, 200, 66);
/* oklch */ color: oklch(81.5% 0.151 106.4);
Tailwind
colors: {
  custom: {
    50: '#e1d87e',
    500: '#cfc842',
    950: '#000000',
  },
}
SCSS
$custom: #cfc842;
$custom-light: #e1d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc842",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 57.021,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.81465,
    "c": 0.15065,
    "h": 106.4
  },
  "luminance": 0.54967
}

Semantic roles & 50–950 ramp

primary
#CFC842
secondary
#353980
accent
#4DE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC842

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

Preview Lab → · Contrast checker → · Palette generator →

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