#CFCC78#CFCC78

#CFCC78 is a very light, moderate yellow. Relative luminance 0.578; OKLCH L 82.9% C 0.106 H 106.7°. Best body text is #000000 at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#CFCC78
RGBrgb(207, 204, 120)
HSLhsl(58, 48%, 64%)
HSVhsv(58, 42%, 81%)
CMYKcmyk(0%, 1.4%, 42%, 18.8%)
CIE-LABlab(80.63, -10.97, 42.13)
CIE-LCHlch(80.63, 43.53, 104.60°)
OKLaboklab(82.92% -0.0306 0.1019)
OKLCHoklch(82.92% 0.106 106.7)
XYZxyz(50.7161, 57.8084, 26.2522)
Luminance0.5781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCC78 #787BCF
analogous
#CFA178 #CFCC78 #A7CF78
triadic
#CFCC78 #78CFCC #CC78CF
tetradic
#CFCC78 #78CFA1 #787BCF #CF78A7
square
#CFCC78 #78CFA1 #787BCF #CF78A7
split-complementary
#CFCC78 #78A7CF #A178CF
monochromatic
#979436 #BFBB4B #CFCC78 #DFDDA5 #EFEED2

Accessibility & contrast

On white

1.67
#CFCC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.56
#CFCC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCC78
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCC78#FFFFFF#000000##000000
##CFCC781.001.6712.5612.56
#FFFFFF1.671.0021.0021.00
#00000012.5621.001.001.00
##00000012.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C671
Deuteranopia (green-blind)
#DBCA7C
Tritanopia (blue-blind)
#DAC2B8
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cfcc78;
/* rgb */ color: rgb(207, 204, 120);
/* oklch */ color: oklch(82.9% 0.106 106.7);
Tailwind
colors: {
  custom: {
    50: '#dfdba0',
    500: '#cfcc78',
    950: '#000000',
  },
}
SCSS
$custom: #cfcc78;
$custom-light: #dfdba0;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcc78",
  "rgb": {
    "r": 207,
    "g": 204,
    "b": 120
  },
  "hsl": {
    "h": 57.931,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.82921,
    "c": 0.10639,
    "h": 106.7
  },
  "luminance": 0.57807
}

Semantic roles & 50–950 ramp

primary
#CFCC78
secondary
#4E519D
accent
#30BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CFCC78

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

Preview Lab → · Contrast checker → · Palette generator →

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