#CFC940#CFC940

#CFC940 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.153 H 106.9°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#CFC940
RGBrgb(207, 201, 64)
HSLhsl(57, 60%, 53%)
HSVhsv(57, 69%, 81%)
CMYKcmyk(0%, 2.9%, 69.1%, 18.8%)
CIE-LABlab(79.28, -13.76, 65.69)
CIE-LCHlch(79.28, 67.11, 101.83°)
OKLaboklab(81.66% -0.0443 0.1464)
OKLCHoklch(81.66% 0.153 106.9)
XYZxyz(47.5460, 55.4105, 13.0403)
Luminance0.5541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC940 #4046CF
analogous
#CF8240 #CFC940 #8DCF40
triadic
#CFC940 #40CFC9 #C940CF
tetradic
#CFC940 #40CF82 #4046CF #CF408D
square
#CFC940 #40CF82 #4046CF #CF408D
split-complementary
#CFC940 #408DCF #8240CF
monochromatic
#77731E #A8A22A #CFC940 #DBD771 #E8E5A2

Accessibility & contrast

On white

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

On black

12.08
#CFC940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC940
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC940#FFFFFF#000000##000000
##CFC9401.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC12A
Deuteranopia (green-blind)
#DDC749
Tritanopia (blue-blind)
#DEBCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc940;
/* rgb */ color: rgb(207, 201, 64);
/* oklch */ color: oklch(81.7% 0.153 106.9);
Tailwind
colors: {
  custom: {
    50: '#e1d97d',
    500: '#cfc940',
    950: '#000000',
  },
}
SCSS
$custom: #cfc940;
$custom-light: #e1d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc940",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 57.483,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.81663,
    "c": 0.15292,
    "h": 106.9
  },
  "luminance": 0.55409
}

Semantic roles & 50–950 ramp

primary
#CFC940
secondary
#34377F
accent
#4BE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC940

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

Preview Lab → · Contrast checker → · Palette generator →

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