#CFC84F#CFC84F

#CFC84F is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.6% C 0.141 H 106.0°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#CFC84F
RGBrgb(207, 200, 79)
HSLhsl(57, 57%, 56%)
HSVhsv(57, 62%, 81%)
CMYKcmyk(0%, 3.4%, 61.8%, 18.8%)
CIE-LABlab(79.12, -12.39, 59.53)
CIE-LCHlch(79.12, 60.80, 101.76°)
OKLaboklab(81.58% -0.0389 0.1357)
OKLCHoklch(81.58% 0.141 106)
XYZxyz(47.7993, 55.1401, 15.5208)
Luminance0.5514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC84F #4F56CF
analogous
#CF884F #CFC84F #96CF4F
triadic
#CFC84F #4FCFC8 #C84FCF
tetradic
#CFC84F #4FCF88 #4F56CF #CF4F96
square
#CFC84F #4FCF88 #4F56CF #CF4F96
split-complementary
#CFC84F #4F96CF #884FCF
monochromatic
#817B23 #B1AA30 #CFC84F #DCD77F #E9E6AF

Accessibility & contrast

On white

1.75
#CFC84F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#CFC84F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC84F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC84F#FFFFFF#000000##000000
##CFC84F1.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C140
Deuteranopia (green-blind)
#DBC656
Tritanopia (blue-blind)
#DDBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc84f;
/* rgb */ color: rgb(207, 200, 79);
/* oklch */ color: oklch(81.6% 0.141 106.0);
Tailwind
colors: {
  custom: {
    50: '#e1d886',
    500: '#cfc84f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc84f;
$custom-light: #e1d886;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc84f",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 79
  },
  "hsl": {
    "h": 56.719,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81575,
    "c": 0.14115,
    "h": 106
  },
  "luminance": 0.55138
}

Semantic roles & 50–950 ramp

primary
#CFC84F
secondary
#3A3F88
accent
#50E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC84F

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

Preview Lab → · Contrast checker → · Palette generator →

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