#CFC042#CFC042

#CFC042 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.143 H 102.4°. Best body text is #000000 at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#CFC042
RGBrgb(207, 192, 66)
HSLhsl(54, 59%, 54%)
HSVhsv(54, 68%, 81%)
CMYKcmyk(0%, 7.2%, 68.1%, 18.8%)
CIE-LABlab(76.90, -9.09, 62.53)
CIE-LCHlch(76.90, 63.19, 98.27°)
OKLaboklab(79.77% -0.0309 0.14)
OKLCHoklch(79.77% 0.143 102.4)
XYZxyz(45.5671, 51.3599, 12.6664)
Luminance0.5136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC042 #4251CF
analogous
#CF7942 #CFC042 #97CF42
triadic
#CFC042 #42CFC0 #C042CF
tetradic
#CFC042 #42CF79 #4251CF #CF4297
square
#CFC042 #42CF79 #4251CF #CF4297
split-complementary
#CFC042 #4297CF #7942CF
monochromatic
#786F1F #A99B2B #CFC042 #DBD073 #E8E1A4

Accessibility & contrast

On white

1.86
#CFC042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.27
#CFC042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC042
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC042#FFFFFF#000000##000000
##CFC0421.001.8611.2711.27
#FFFFFF1.861.0021.0021.00
#00000011.2721.001.001.00
##00000011.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D6C14A
Tritanopia (blue-blind)
#DEB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc042;
/* rgb */ color: rgb(207, 192, 66);
/* oklch */ color: oklch(79.8% 0.143 102.4);
Tailwind
colors: {
  custom: {
    50: '#e1d27d',
    500: '#cfc042',
    950: '#000000',
  },
}
SCSS
$custom: #cfc042;
$custom-light: #e1d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc042",
  "rgb": {
    "r": 207,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 53.617,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.79772,
    "c": 0.1434,
    "h": 102.4
  },
  "luminance": 0.51358
}

Semantic roles & 50–950 ramp

primary
#CFC042
secondary
#353D80
accent
#56E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC042

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

Preview Lab → · Contrast checker → · Palette generator →

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