#CFC640#CFC640

#CFC640 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.0% C 0.150 H 105.5°. Best body text is #000000 at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#CFC640
RGBrgb(207, 198, 64)
HSLhsl(56, 60%, 53%)
HSVhsv(56, 69%, 81%)
CMYKcmyk(0%, 4.3%, 69.1%, 18.8%)
CIE-LABlab(78.48, -12.25, 64.89)
CIE-LCHlch(78.48, 66.04, 100.69°)
OKLaboklab(81.03% -0.0401 0.1447)
OKLCHoklch(81.03% 0.15 105.5)
XYZxyz(46.8535, 54.0255, 12.8094)
Luminance0.5402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC640 #4049CF
analogous
#CF7E40 #CFC640 #90CF40
triadic
#CFC640 #40CFC6 #C640CF
tetradic
#CFC640 #40CF7E #4049CF #CF4090
square
#CFC640 #40CF7E #4049CF #CF4090
split-complementary
#CFC640 #4090CF #7E40CF
monochromatic
#77711E #A8A02A #CFC640 #DBD571 #E8E3A2

Accessibility & contrast

On white

1.78
#CFC640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.80
#CFC640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC640
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC640#FFFFFF#000000##000000
##CFC6401.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#DAC549
Tritanopia (blue-blind)
#DEB9AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cfc640;
/* rgb */ color: rgb(207, 198, 64);
/* oklch */ color: oklch(81.0% 0.150 105.5);
Tailwind
colors: {
  custom: {
    50: '#e1d77d',
    500: '#cfc640',
    950: '#000000',
  },
}
SCSS
$custom: #cfc640;
$custom-light: #e1d77d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc640",
  "rgb": {
    "r": 207,
    "g": 198,
    "b": 64
  },
  "hsl": {
    "h": 56.224,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.81025,
    "c": 0.15011,
    "h": 105.5
  },
  "luminance": 0.54024
}

Semantic roles & 50–950 ramp

primary
#CFC640
secondary
#34397F
accent
#4FE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC640

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

Preview Lab → · Contrast checker → · Palette generator →

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