#D5CF40#D5CF40

#D5CF40 is a very light, vivid yellow. Relative luminance 0.591; OKLCH L 83.5% C 0.158 H 107.0°. Best body text is #000000 at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#D5CF40
RGBrgb(213, 207, 64)
HSLhsl(58, 64%, 54%)
HSVhsv(58, 70%, 84%)
CMYKcmyk(0%, 2.8%, 70%, 16.5%)
CIE-LABlab(81.37, -14.25, 67.92)
CIE-LCHlch(81.37, 69.39, 101.85°)
OKLaboklab(83.45% -0.046 0.1509)
OKLCHoklch(83.45% 0.158 107)
XYZxyz(50.6808, 59.1437, 13.5957)
Luminance0.5914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5CF40 #4046D5
analogous
#D58540 #D5CF40 #91D540
triadic
#D5CF40 #40D5CF #CF40D5
tetradic
#D5CF40 #40D585 #4046D5 #D54091
square
#D5CF40 #40D585 #4046D5 #D54091
split-complementary
#D5CF40 #4091D5 #8540D5
monochromatic
#7F7B1C #B1AB27 #D5CF40 #E0DC72 #EBE8A4

Accessibility & contrast

On white

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

On black

12.83
#D5CF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5CF40
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5CF40#FFFFFF#000000##000000
##D5CF401.001.6412.8312.83
#FFFFFF1.641.0021.0021.00
#00000012.8321.001.001.00
##00000012.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C728
Deuteranopia (green-blind)
#E3CD4A
Tritanopia (blue-blind)
#E4C1B3
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d5cf40;
/* rgb */ color: rgb(213, 207, 64);
/* oklch */ color: oklch(83.5% 0.158 107.0);
Tailwind
colors: {
  custom: {
    50: '#e6dd7e',
    500: '#d5cf40',
    950: '#000000',
  },
}
SCSS
$custom: #d5cf40;
$custom-light: #e6dd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5cf40",
  "rgb": {
    "r": 213,
    "g": 207,
    "b": 64
  },
  "hsl": {
    "h": 57.584,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.83451,
    "c": 0.15772,
    "h": 107
  },
  "luminance": 0.59142
}

Semantic roles & 50–950 ramp

primary
#D5CF40
secondary
#333686
accent
#48E741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D5CF40

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

Preview Lab → · Contrast checker → · Palette generator →

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