#CFCC40#CFCC40

#CFCC40 is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.3% C 0.156 H 108.2°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#CFCC40
RGBrgb(207, 204, 64)
HSLhsl(59, 60%, 53%)
HSVhsv(59, 69%, 81%)
CMYKcmyk(0%, 1.4%, 69.1%, 18.8%)
CIE-LABlab(80.08, -15.27, 66.48)
CIE-LCHlch(80.08, 68.21, 102.93°)
OKLaboklab(82.3% -0.0486 0.148)
OKLCHoklch(82.3% 0.156 108.2)
XYZxyz(48.2522, 56.8228, 13.2757)
Luminance0.5682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCC40 #4043CF
analogous
#CF8440 #CFCC40 #8BCF40
triadic
#CFCC40 #40CFCC #CC40CF
tetradic
#CFCC40 #40CF84 #4043CF #CF408B
square
#CFCC40 #40CF84 #4043CF #CF408B
split-complementary
#CFCC40 #408BCF #8440CF
monochromatic
#77751E #A8A52A #CFCC40 #DBD971 #E8E6A2

Accessibility & contrast

On white

1.70
#CFCC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.36
#CFCC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCC40
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCC40#FFFFFF#000000##000000
##CFCC401.001.7012.3612.36
#FFFFFF1.701.0021.0021.00
#00000012.3621.001.001.00
##00000012.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC429
Deuteranopia (green-blind)
#DFC94A
Tritanopia (blue-blind)
#DEBFB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cfcc40;
/* rgb */ color: rgb(207, 204, 64);
/* oklch */ color: oklch(82.3% 0.156 108.2);
Tailwind
colors: {
  custom: {
    50: '#e1db7d',
    500: '#cfcc40',
    950: '#000000',
  },
}
SCSS
$custom: #cfcc40;
$custom-light: #e1db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcc40",
  "rgb": {
    "r": 207,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 58.741,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.82303,
    "c": 0.15578,
    "h": 108.2
  },
  "luminance": 0.56821
}

Semantic roles & 50–950 ramp

primary
#CFCC40
secondary
#34367F
accent
#48E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFCC40

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

Preview Lab → · Contrast checker → · Palette generator →

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