#CFD74F#CFD74F

#CFD74F is a very light, vivid yellow. Relative luminance 0.624; OKLCH L 84.8% C 0.157 H 112.5°. Best body text is #000000 at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#CFD74F
RGBrgb(207, 215, 79)
HSLhsl(64, 63%, 58%)
HSVhsv(64, 63%, 84%)
CMYKcmyk(3.7%, 0%, 63.3%, 15.7%)
CIE-LABlab(83.14, -19.86, 63.80)
CIE-LCHlch(83.14, 66.82, 107.29°)
OKLaboklab(84.78% -0.0599 0.1447)
OKLCHoklch(84.78% 0.157 112.5)
XYZxyz(51.4453, 62.4319, 16.7361)
Luminance0.6243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD74F #574FD7
analogous
#D79B4F #CFD74F #8BD74F
triadic
#CFD74F #4FCFD7 #D74FCF
tetradic
#CFD74F #4FD79B #574FD7 #D74F8B
square
#CFD74F #4FD79B #574FD7 #D74F8B
split-complementary
#CFD74F #4F8BD7 #9B4FD7
monochromatic
#858C20 #B5BE2B #CFD74F #DDE281 #EAEEB3

Accessibility & contrast

On white

1.56
#CFD74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.49
#CFD74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD74F
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD74F#FFFFFF#000000##000000
##CFD74F1.001.5613.4913.49
#FFFFFF1.561.0021.0021.00
#00000013.4921.001.001.00
##00000013.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CD3D
Deuteranopia (green-blind)
#E7D158
Tritanopia (blue-blind)
#DCCBBB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #cfd74f;
/* rgb */ color: rgb(207, 215, 79);
/* oklch */ color: oklch(84.8% 0.157 112.5);
Tailwind
colors: {
  custom: {
    50: '#e1e387',
    500: '#cfd74f',
    950: '#000000',
  },
}
SCSS
$custom: #cfd74f;
$custom-light: #e1e387;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd74f",
  "rgb": {
    "r": 207,
    "g": 215,
    "b": 79
  },
  "hsl": {
    "h": 63.529,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.84783,
    "c": 0.15665,
    "h": 112.5
  },
  "luminance": 0.62431
}

Semantic roles & 50–950 ramp

primary
#CFD74F
secondary
#3E3992
accent
#42E64B
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CFD74F

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

Preview Lab → · Contrast checker → · Palette generator →

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