#CFC873#CFC873

#CFC873 is a very light, moderate yellow. Relative luminance 0.558; OKLCH L 82.0% C 0.107 H 104.4°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CFC873
RGBrgb(207, 200, 115)
HSLhsl(55, 49%, 63%)
HSVhsv(55, 44%, 81%)
CMYKcmyk(0%, 3.4%, 44.4%, 18.8%)
CIE-LABlab(79.51, -9.44, 43.22)
CIE-LCHlch(79.51, 44.24, 102.32°)
OKLaboklab(82.01% -0.0266 0.104)
OKLCHoklch(82.01% 0.107 104.4)
XYZxyz(49.4820, 55.8131, 24.3828)
Luminance0.5581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC873 #737ACF
analogous
#CF9A73 #CFC873 #A8CF73
triadic
#CFC873 #73CFC8 #C873CF
tetradic
#CFC873 #73CF9A #737ACF #CF73A8
square
#CFC873 #73CF9A #737ACF #CF73A8
split-complementary
#CFC873 #73A8CF #9A73CF
monochromatic
#958D33 #BFB645 #CFC873 #DFDAA1 #EEECCE

Accessibility & contrast

On white

1.73
#CFC873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.16
#CFC873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC873
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC873#FFFFFF#000000##000000
##CFC8731.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C26C
Deuteranopia (green-blind)
#D8C777
Tritanopia (blue-blind)
#DBBEB4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc873;
/* rgb */ color: rgb(207, 200, 115);
/* oklch */ color: oklch(82.0% 0.107 104.4);
Tailwind
colors: {
  custom: {
    50: '#dfd89d',
    500: '#cfc873',
    950: '#000000',
  },
}
SCSS
$custom: #cfc873;
$custom-light: #dfd89d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc873",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 115
  },
  "hsl": {
    "h": 55.435,
    "s": 48.936,
    "l": 63.137
  },
  "oklch": {
    "l": 0.82005,
    "c": 0.10737,
    "h": 104.4
  },
  "luminance": 0.55812
}

Semantic roles & 50–950 ramp

primary
#CFC873
secondary
#4C529B
accent
#34BC29
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CFC873

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

Preview Lab → · Contrast checker → · Palette generator →

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