#CFC878#CFC878

#CFC878 is a very light, moderate yellow. Relative luminance 0.559; OKLCH L 82.1% C 0.102 H 104.0°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#CFC878
RGBrgb(207, 200, 120)
HSLhsl(55, 48%, 64%)
HSVhsv(55, 42%, 81%)
CMYKcmyk(0%, 3.4%, 42%, 18.8%)
CIE-LABlab(79.57, -8.93, 40.80)
CIE-LCHlch(79.57, 41.77, 102.35°)
OKLaboklab(82.08% -0.0247 0.0989)
OKLCHoklch(82.08% 0.102 104)
XYZxyz(49.7775, 55.9313, 25.9393)
Luminance0.5593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC878 #787FCF
analogous
#CF9D78 #CFC878 #ABCF78
triadic
#CFC878 #78CFC8 #C878CF
tetradic
#CFC878 #78CF9D #787FCF #CF78AB
square
#CFC878 #78CF9D #787FCF #CF78AB
split-complementary
#CFC878 #78ABCF #9D78CF
monochromatic
#978F36 #BFB64B #CFC878 #DFDAA5 #EFEDD2

Accessibility & contrast

On white

1.72
#CFC878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.19
#CFC878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC878
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC878#FFFFFF#000000##000000
##CFC8781.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C372
Deuteranopia (green-blind)
#D8C77B
Tritanopia (blue-blind)
#DBBEB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc878;
/* rgb */ color: rgb(207, 200, 120);
/* oklch */ color: oklch(82.1% 0.102 104.0);
Tailwind
colors: {
  custom: {
    50: '#dfd8a0',
    500: '#cfc878',
    950: '#000000',
  },
}
SCSS
$custom: #cfc878;
$custom-light: #dfd8a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc878",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 120
  },
  "hsl": {
    "h": 55.172,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.82081,
    "c": 0.10195,
    "h": 104
  },
  "luminance": 0.5593
}

Semantic roles & 50–950 ramp

primary
#CFC878
secondary
#4E559D
accent
#36BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC878

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

Preview Lab → · Contrast checker → · Palette generator →

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