#D4CF42#D4CF42

#D4CF42 is a very light, vivid yellow. Relative luminance 0.590; OKLCH L 83.4% C 0.157 H 107.3°. Best body text is #000000 at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#D4CF42
RGBrgb(212, 207, 66)
HSLhsl(58, 63%, 55%)
HSVhsv(58, 69%, 83%)
CMYKcmyk(0%, 2.4%, 68.9%, 16.9%)
CIE-LABlab(81.30, -14.57, 67.09)
CIE-LCHlch(81.30, 68.65, 102.25°)
OKLaboklab(83.38% -0.0467 0.1495)
OKLCHoklch(83.38% 0.157 107.3)
XYZxyz(50.4495, 59.0177, 13.8873)
Luminance0.5902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CF42 #4247D4
analogous
#D48642 #D4CF42 #90D442
triadic
#D4CF42 #42D4CF #CF42D4
tetradic
#D4CF42 #42D486 #4247D4 #D44290
square
#D4CF42 #42D486 #4247D4 #D44290
split-complementary
#D4CF42 #4290D4 #8642D4
monochromatic
#7F7B1D #B1AC28 #D4CF42 #DFDC74 #EBE8A6

Accessibility & contrast

On white

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

On black

12.80
#D4CF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CF42
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CF42#FFFFFF#000000##000000
##D4CF421.001.6412.8012.80
#FFFFFF1.641.0021.0021.00
#00000012.8021.001.001.00
##00000012.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C72C
Deuteranopia (green-blind)
#E3CC4C
Tritanopia (blue-blind)
#E3C2B3
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d4cf42;
/* rgb */ color: rgb(212, 207, 66);
/* oklch */ color: oklch(83.4% 0.157 107.3);
Tailwind
colors: {
  custom: {
    50: '#e5dd7f',
    500: '#d4cf42',
    950: '#000000',
  },
}
SCSS
$custom: #d4cf42;
$custom-light: #e5dd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cf42",
  "rgb": {
    "r": 212,
    "g": 207,
    "b": 66
  },
  "hsl": {
    "h": 57.945,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.8338,
    "c": 0.1566,
    "h": 107.3
  },
  "luminance": 0.59016
}

Semantic roles & 50–950 ramp

primary
#D4CF42
secondary
#343786
accent
#47E642
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D4CF42

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

Preview Lab → · Contrast checker → · Palette generator →

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