#D5CF38#D5CF38

#D5CF38 is a very light, vivid yellow. Relative luminance 0.591; OKLCH L 83.4% C 0.162 H 107.1°. Best body text is #000000 at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#D5CF38
RGBrgb(213, 207, 56)
HSLhsl(58, 65%, 53%)
HSVhsv(58, 74%, 84%)
CMYKcmyk(0%, 2.8%, 73.7%, 16.5%)
CIE-LABlab(81.32, -14.61, 70.64)
CIE-LCHlch(81.32, 72.14, 101.69°)
OKLaboklab(83.4% -0.0478 0.1552)
OKLCHoklch(83.4% 0.162 107.1)
XYZxyz(50.4692, 59.0591, 12.4817)
Luminance0.5906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5CF38 #383ED5
analogous
#D58038 #D5CF38 #8CD538
triadic
#D5CF38 #38D5CF #CF38D5
tetradic
#D5CF38 #38D580 #383ED5 #D5388C
square
#D5CF38 #38D580 #383ED5 #D5388C
split-complementary
#D5CF38 #388CD5 #8038D5
monochromatic
#79751A #ACA624 #D5CF38 #E0DB6B #EAE79D

Accessibility & contrast

On white

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

On black

12.81
#D5CF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5CF38
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5CF38#FFFFFF#000000##000000
##D5CF381.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C718
Deuteranopia (green-blind)
#E4CD44
Tritanopia (blue-blind)
#E5C1B2
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d5cf38;
/* rgb */ color: rgb(213, 207, 56);
/* oklch */ color: oklch(83.4% 0.162 107.1);
Tailwind
colors: {
  custom: {
    50: '#e6dd7a',
    500: '#d5cf38',
    950: '#000000',
  },
}
SCSS
$custom: #d5cf38;
$custom-light: #e6dd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#d5cf38",
  "rgb": {
    "r": 213,
    "g": 207,
    "b": 56
  },
  "hsl": {
    "h": 57.707,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.83399,
    "c": 0.16241,
    "h": 107.1
  },
  "luminance": 0.59057
}

Semantic roles & 50–950 ramp

primary
#D5CF38
secondary
#303381
accent
#46E840
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D5CF38

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

Preview Lab → · Contrast checker → · Palette generator →

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