#CFCF42#CFCF42

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

Color values

HEX#CFCF42
RGBrgb(207, 207, 66)
HSLhsl(60, 59%, 54%)
HSVhsv(60, 68%, 81%)
CMYKcmyk(0%, 0%, 68.1%, 18.8%)
CIE-LABlab(80.90, -16.66, 66.55)
CIE-LCHlch(80.90, 68.61, 104.06°)
OKLaboklab(82.96% -0.0523 0.1485)
OKLCHoklch(82.96% 0.157 109.4)
XYZxyz(49.0300, 58.2858, 13.8208)
Luminance0.5828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCF42 #4242CF
analogous
#CF8842 #CFCF42 #88CF42
triadic
#CFCF42 #42CFCF #CF42CF
tetradic
#CFCF42 #42CF88 #4242CF #CF4288
square
#CFCF42 #42CF88 #4242CF #CF4288
split-complementary
#CFCF42 #4288CF #8842CF
monochromatic
#78781F #A9A92B #CFCF42 #DBDB73 #E8E8A4

Accessibility & contrast

On white

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

On black

12.66
#CFCF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCF42
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCF42#FFFFFF#000000##000000
##CFCF421.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfcf42;
/* rgb */ color: rgb(207, 207, 66);
/* oklch */ color: oklch(83.0% 0.157 109.4);
Tailwind
colors: {
  custom: {
    50: '#e1dd7f',
    500: '#cfcf42',
    950: '#000000',
  },
}
SCSS
$custom: #cfcf42;
$custom-light: #e1dd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcf42",
  "rgb": {
    "r": 207,
    "g": 207,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.82959,
    "c": 0.15744,
    "h": 109.4
  },
  "luminance": 0.58284
}

Semantic roles & 50–950 ramp

primary
#CFCF42
secondary
#353580
accent
#45E345
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFCF42

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

Preview Lab → · Contrast checker → · Palette generator →

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