#D4CF21#D4CF21

#D4CF21 is a very light, vivid yellow. Relative luminance 0.587; OKLCH L 83.2% C 0.173 H 107.8°. Best body text is #000000 at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#D4CF21
RGBrgb(212, 207, 33)
HSLhsl(58, 73%, 48%)
HSVhsv(58, 84%, 83%)
CMYKcmyk(0%, 2.4%, 84.4%, 16.9%)
CIE-LABlab(81.15, -15.80, 76.79)
CIE-LCHlch(81.15, 78.40, 101.63°)
OKLaboklab(83.21% -0.0528 0.1644)
OKLCHoklch(83.21% 0.173 107.8)
XYZxyz(49.7408, 58.7343, 10.1553)
Luminance0.5873 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CF21 #2126D4
analogous
#D47521 #D4CF21 #7FD421
triadic
#D4CF21 #21D4CF #CF21D4
tetradic
#D4CF21 #21D475 #2126D4 #D4217F
square
#D4CF21 #21D475 #2126D4 #D4217F
split-complementary
#D4CF21 #217FD4 #7521D4
monochromatic
#6A6811 #9F9B19 #D4CF21 #E4DF4F #ECE984

Accessibility & contrast

On white

1.65
#D4CF21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.75
#D4CF21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CF21
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CF21#FFFFFF#000000##000000
##D4CF211.001.6512.7512.75
#FFFFFF1.651.0021.0021.00
#00000012.7521.001.001.00
##00000012.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C600
Deuteranopia (green-blind)
#E4CC34
Tritanopia (blue-blind)
#E4C1B1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d4cf21;
/* rgb */ color: rgb(212, 207, 33);
/* oklch */ color: oklch(83.2% 0.173 107.8);
Tailwind
colors: {
  custom: {
    50: '#e6dd70',
    500: '#d4cf21',
    950: '#000000',
  },
}
SCSS
$custom: #d4cf21;
$custom-light: #e6dd70;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cf21",
  "rgb": {
    "r": 212,
    "g": 207,
    "b": 33
  },
  "hsl": {
    "h": 58.324,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.83206,
    "c": 0.17267,
    "h": 107.8
  },
  "luminance": 0.58733
}

Semantic roles & 50–950 ramp

primary
#D4CF21
secondary
#252874
accent
#3DF038
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#171509
muted
#85847D

Preview Lab

Preview with #D4CF21

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

Preview Lab → · Contrast checker → · Palette generator →

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