#CFC840#CFC840

#CFC840 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.5% C 0.152 H 106.4°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#CFC840
RGBrgb(207, 200, 64)
HSLhsl(57, 60%, 53%)
HSVhsv(57, 69%, 81%)
CMYKcmyk(0%, 3.4%, 69.1%, 18.8%)
CIE-LABlab(79.01, -13.26, 65.42)
CIE-LCHlch(79.01, 66.75, 101.46°)
OKLaboklab(81.45% -0.0429 0.1458)
OKLCHoklch(81.45% 0.152 106.4)
XYZxyz(47.3136, 54.9458, 12.9628)
Luminance0.5494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC840 #4047CF
analogous
#CF8040 #CFC840 #8ECF40
triadic
#CFC840 #40CFC8 #C840CF
tetradic
#CFC840 #40CF80 #4047CF #CF408E
square
#CFC840 #40CF80 #4047CF #CF408E
split-complementary
#CFC840 #408ECF #8040CF
monochromatic
#77721E #A8A22A #CFC840 #DBD671 #E8E4A2

Accessibility & contrast

On white

1.75
#CFC840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.99
#CFC840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC840
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC840#FFFFFF#000000##000000
##CFC8401.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12B
Deuteranopia (green-blind)
#DCC649
Tritanopia (blue-blind)
#DEBBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc840;
/* rgb */ color: rgb(207, 200, 64);
/* oklch */ color: oklch(81.5% 0.152 106.4);
Tailwind
colors: {
  custom: {
    50: '#e1d87d',
    500: '#cfc840',
    950: '#000000',
  },
}
SCSS
$custom: #cfc840;
$custom-light: #e1d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc840",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 57.063,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.8145,
    "c": 0.15197,
    "h": 106.4
  },
  "luminance": 0.54944
}

Semantic roles & 50–950 ramp

primary
#CFC840
secondary
#34387F
accent
#4DE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC840

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

Preview Lab → · Contrast checker → · Palette generator →

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