#D4CF3B#D4CF3B

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

Color values

HEX#D4CF3B
RGBrgb(212, 207, 59)
HSLhsl(58, 64%, 53%)
HSVhsv(58, 72%, 83%)
CMYKcmyk(0%, 2.4%, 72.2%, 16.9%)
CIE-LABlab(81.26, -14.90, 69.54)
CIE-LCHlch(81.26, 71.12, 102.10°)
OKLaboklab(83.33% -0.0483 0.1535)
OKLCHoklch(83.33% 0.161 107.5)
XYZxyz(50.2556, 58.9402, 12.8662)
Luminance0.5894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CF3B #3B40D4
analogous
#D4823B #D4CF3B #8CD43B
triadic
#D4CF3B #3BD4CF #CF3BD4
tetradic
#D4CF3B #3BD482 #3B40D4 #D43B8C
square
#D4CF3B #3BD482 #3B40D4 #D43B8C
split-complementary
#D4CF3B #3B8CD4 #823BD4
monochromatic
#7A771B #ACA826 #D4CF3B #DFDB6D #EAE89F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4CF3B#FFFFFF#000000##000000
##D4CF3B1.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)
#E0C71F
Deuteranopia (green-blind)
#E3CC46
Tritanopia (blue-blind)
#E3C1B2
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d4cf3b;
/* rgb */ color: rgb(212, 207, 59);
/* oklch */ color: oklch(83.3% 0.161 107.5);
Tailwind
colors: {
  custom: {
    50: '#e5dd7b',
    500: '#d4cf3b',
    950: '#000000',
  },
}
SCSS
$custom: #d4cf3b;
$custom-light: #e5dd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cf3b",
  "rgb": {
    "r": 212,
    "g": 207,
    "b": 59
  },
  "hsl": {
    "h": 58.039,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.83332,
    "c": 0.16088,
    "h": 107.5
  },
  "luminance": 0.58938
}

Semantic roles & 50–950 ramp

primary
#D4CF3B
secondary
#313482
accent
#46E741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D4CF3B

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

Preview Lab → · Contrast checker → · Palette generator →

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