#D4CF40#D4CF40

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

Color values

HEX#D4CF40
RGBrgb(212, 207, 64)
HSLhsl(58, 63%, 54%)
HSVhsv(58, 70%, 83%)
CMYKcmyk(0%, 2.4%, 69.8%, 16.9%)
CIE-LABlab(81.29, -14.67, 67.81)
CIE-LCHlch(81.29, 69.38, 102.21°)
OKLaboklab(83.37% -0.0471 0.1507)
OKLCHoklch(83.37% 0.158 107.4)
XYZxyz(50.3915, 58.9946, 13.5822)
Luminance0.5899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CF40 #4045D4
analogous
#D48540 #D4CF40 #8FD440
triadic
#D4CF40 #40D4CF #CF40D4
tetradic
#D4CF40 #40D485 #4045D4 #D4408F
square
#D4CF40 #40D485 #4045D4 #D4408F
split-complementary
#D4CF40 #408FD4 #8540D4
monochromatic
#7D7A1C #AFAB27 #D4CF40 #DFDC72 #EAE8A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4CF40#FFFFFF#000000##000000
##D4CF401.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)
#E0C728
Deuteranopia (green-blind)
#E3CC4A
Tritanopia (blue-blind)
#E3C2B3
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d4cf40;
/* rgb */ color: rgb(212, 207, 64);
/* oklch */ color: oklch(83.4% 0.158 107.4);
Tailwind
colors: {
  custom: {
    50: '#e5dd7e',
    500: '#d4cf40',
    950: '#000000',
  },
}
SCSS
$custom: #d4cf40;
$custom-light: #e5dd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cf40",
  "rgb": {
    "r": 212,
    "g": 207,
    "b": 64
  },
  "hsl": {
    "h": 57.973,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.83366,
    "c": 0.15787,
    "h": 107.4
  },
  "luminance": 0.58993
}

Semantic roles & 50–950 ramp

primary
#D4CF40
secondary
#333685
accent
#47E642
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D4CF40

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

Preview Lab → · Contrast checker → · Palette generator →

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