#CFCF40#CFCF40

#CFCF40 is a very light, vivid yellow. Relative luminance 0.583; OKLCH L 82.9% C 0.159 H 109.4°. Best body text is #000000 at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#CFCF40
RGBrgb(207, 207, 64)
HSLhsl(60, 60%, 53%)
HSVhsv(60, 69%, 81%)
CMYKcmyk(0%, 0%, 69.1%, 18.8%)
CIE-LABlab(80.88, -16.76, 67.28)
CIE-LCHlch(80.88, 69.33, 103.99°)
OKLaboklab(82.95% -0.0527 0.1497)
OKLCHoklch(82.95% 0.159 109.4)
XYZxyz(48.9721, 58.2626, 13.5156)
Luminance0.5826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCF40 #4040CF
analogous
#CF8740 #CFCF40 #87CF40
triadic
#CFCF40 #40CFCF #CF40CF
tetradic
#CFCF40 #40CF87 #4040CF #CF4087
square
#CFCF40 #40CF87 #4040CF #CF4087
split-complementary
#CFCF40 #4087CF #8740CF
monochromatic
#77771E #A8A82A #CFCF40 #DBDB71 #E8E8A2

Accessibility & contrast

On white

1.66
#CFCF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.65
#CFCF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCF40
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCF40#FFFFFF#000000##000000
##CFCF401.001.6612.6512.65
#FFFFFF1.661.0021.0021.00
#00000012.6521.001.001.00
##00000012.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC628
Deuteranopia (green-blind)
#E1CB4A
Tritanopia (blue-blind)
#DDC2B3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cfcf40;
/* rgb */ color: rgb(207, 207, 64);
/* oklch */ color: oklch(82.9% 0.159 109.4);
Tailwind
colors: {
  custom: {
    50: '#e1dd7e',
    500: '#cfcf40',
    950: '#000000',
  },
}
SCSS
$custom: #cfcf40;
$custom-light: #e1dd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcf40",
  "rgb": {
    "r": 207,
    "g": 207,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.82945,
    "c": 0.15872,
    "h": 109.4
  },
  "luminance": 0.58261
}

Semantic roles & 50–950 ramp

primary
#CFCF40
secondary
#34347F
accent
#45E345
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CFCF40

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

Preview Lab → · Contrast checker → · Palette generator →

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