#CFC799#CFC799

#CFC799 is a very light, moderate yellow. Relative luminance 0.564; OKLCH L 82.5% C 0.062 H 99.3°. Best body text is #000000 at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#CFC799
RGBrgb(207, 199, 153)
HSLhsl(51, 36%, 71%)
HSVhsv(51, 26%, 81%)
CMYKcmyk(0%, 3.9%, 26.1%, 18.8%)
CIE-LABlab(79.85, -4.45, 24.09)
CIE-LCHlch(79.85, 24.50, 100.46°)
OKLaboklab(82.47% -0.01 0.061)
OKLCHoklch(82.47% 0.062 99.3)
XYZxyz(51.9055, 56.4132, 38.2853)
Luminance0.5641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC799 #99A1CF
analogous
#CFAC99 #CFC799 #BCCF99
triadic
#CFC799 #99CFC7 #C799CF
tetradic
#CFC799 #99CFAC #99A1CF #CF99BC
square
#CFC799 #99CFAC #99A1CF #CF99BC
split-complementary
#CFC799 #99BCCF #AC99CF
monochromatic
#A2954C #BBB06F #CFC799 #E3DEC3 #F5F4EA

Accessibility & contrast

On white

1.71
#CFC799 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.28
#CFC799 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC799
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC799#FFFFFF#000000##000000
##CFC7991.001.7112.2812.28
#FFFFFF1.711.0021.0021.00
#00000012.2821.001.001.00
##00000012.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0C496
Deuteranopia (green-blind)
#D3C79B
Tritanopia (blue-blind)
#D7C0BB
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfc799;
/* rgb */ color: rgb(207, 199, 153);
/* oklch */ color: oklch(82.5% 0.062 99.3);
Tailwind
colors: {
  custom: {
    50: '#ded7b7',
    500: '#cfc799',
    950: '#000000',
  },
}
SCSS
$custom: #cfc799;
$custom-light: #ded7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc799",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 153
  },
  "hsl": {
    "h": 51.111,
    "s": 36,
    "l": 70.588
  },
  "oklch": {
    "l": 0.82473,
    "c": 0.06177,
    "h": 99.3
  },
  "luminance": 0.56412
}

Semantic roles & 50–950 ramp

primary
#CFC799
secondary
#6871A5
accent
#48AF37
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CFC799

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

Preview Lab → · Contrast checker → · Palette generator →

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