#CFC778#CFC778

#CFC778 is a light, moderate yellow. Relative luminance 0.555; OKLCH L 81.9% C 0.101 H 103.3°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#CFC778
RGBrgb(207, 199, 120)
HSLhsl(54, 48%, 64%)
HSVhsv(54, 42%, 81%)
CMYKcmyk(0%, 3.9%, 42%, 18.8%)
CIE-LABlab(79.31, -8.42, 40.47)
CIE-LCHlch(79.31, 41.34, 101.75°)
OKLaboklab(81.87% -0.0233 0.0982)
OKLCHoklch(81.87% 0.101 103.3)
XYZxyz(49.5467, 55.4697, 25.8624)
Luminance0.5547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC778 #7880CF
analogous
#CF9C78 #CFC778 #ACCF78
triadic
#CFC778 #78CFC7 #C778CF
tetradic
#CFC778 #78CF9C #7880CF #CF78AC
square
#CFC778 #78CF9C #7880CF #CF78AC
split-complementary
#CFC778 #78ACCF #9C78CF
monochromatic
#978E36 #BFB44B #CFC778 #DFDAA5 #EFECD2

Accessibility & contrast

On white

1.74
#CFC778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#CFC778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC778
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC778#FFFFFF#000000##000000
##CFC7781.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C272
Deuteranopia (green-blind)
#D7C67B
Tritanopia (blue-blind)
#DBBDB4
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc778;
/* rgb */ color: rgb(207, 199, 120);
/* oklch */ color: oklch(81.9% 0.101 103.3);
Tailwind
colors: {
  custom: {
    50: '#dfd7a0',
    500: '#cfc778',
    950: '#000000',
  },
}
SCSS
$custom: #cfc778;
$custom-light: #dfd7a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc778",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 120
  },
  "hsl": {
    "h": 54.483,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.81872,
    "c": 0.10087,
    "h": 103.3
  },
  "luminance": 0.55468
}

Semantic roles & 50–950 ramp

primary
#CFC778
secondary
#4E569D
accent
#38BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC778

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

Preview Lab → · Contrast checker → · Palette generator →

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