#CFD04F#CFD04F

#CFD04F is a very light, vivid yellow. Relative luminance 0.589; OKLCH L 83.3% C 0.149 H 109.7°. Best body text is #000000 at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#CFD04F
RGBrgb(207, 208, 79)
HSLhsl(60, 58%, 56%)
HSVhsv(60, 62%, 82%)
CMYKcmyk(0.5%, 0%, 62%, 18.4%)
CIE-LABlab(81.26, -16.40, 61.81)
CIE-LCHlch(81.26, 63.95, 104.86°)
OKLaboklab(83.28% -0.0502 0.1405)
OKLCHoklch(83.28% 0.149 109.7)
XYZxyz(49.7008, 58.9430, 16.1547)
Luminance0.5894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD04F #504FD0
analogous
#D0914F #CFD04F #8FD04F
triadic
#CFD04F #4FCFD0 #D04FCF
tetradic
#CFD04F #4FD091 #504FD0 #D04F8F
square
#CFD04F #4FD091 #504FD0 #D04F8F
split-complementary
#CFD04F #4F8FD0 #914FD0
monochromatic
#818223 #B1B230 #CFD04F #DCDD7F #E9EAB0

Accessibility & contrast

On white

1.64
#CFD04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.79
#CFD04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD04F
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD04F#FFFFFF#000000##000000
##CFD04F1.001.6412.7912.79
#FFFFFF1.641.0021.0021.00
#00000012.7921.001.001.00
##00000012.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C83F
Deuteranopia (green-blind)
#E1CC57
Tritanopia (blue-blind)
#DDC4B5
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #cfd04f;
/* rgb */ color: rgb(207, 208, 79);
/* oklch */ color: oklch(83.3% 0.149 109.7);
Tailwind
colors: {
  custom: {
    50: '#e1de86',
    500: '#cfd04f',
    950: '#000000',
  },
}
SCSS
$custom: #cfd04f;
$custom-light: #e1de86;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd04f",
  "rgb": {
    "r": 207,
    "g": 208,
    "b": 79
  },
  "hsl": {
    "h": 60.465,
    "s": 57.848,
    "l": 56.275
  },
  "oklch": {
    "l": 0.83279,
    "c": 0.14922,
    "h": 109.7
  },
  "luminance": 0.58942
}

Semantic roles & 50–950 ramp

primary
#CFD04F
secondary
#3B3A89
accent
#47E148
background
#FEFEFC
surface
#FCFCF3
border
#D5D5CD
text
#16150C
muted
#84847F

Preview Lab

Preview with #CFD04F

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

Preview Lab → · Contrast checker → · Palette generator →

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