#D8D45F#D8D45F

#D8D45F is a very light, vivid yellow. Relative luminance 0.625; OKLCH L 85.0% C 0.139 H 107.2°. Best body text is #000000 at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#D8D45F
RGBrgb(216, 212, 95)
HSLhsl(58, 61%, 61%)
HSVhsv(58, 56%, 85%)
CMYKcmyk(0%, 1.9%, 56%, 15.3%)
CIE-LABlab(83.19, -13.59, 57.23)
CIE-LCHlch(83.19, 58.82, 103.36°)
OKLaboklab(85.04% -0.0411 0.1327)
OKLCHoklch(85.04% 0.139 107.2)
XYZxyz(53.9295, 62.5137, 20.0498)
Luminance0.6251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D45F #5F63D8
analogous
#D8975F #D8D45F #9FD85F
triadic
#D8D45F #5FD8D4 #D45FD8
tetradic
#D8D45F #5FD897 #5F63D8 #D85F9F
square
#D8D45F #5FD897 #5F63D8 #D85F9F
split-complementary
#D8D45F #5F9FD8 #975FD8
monochromatic
#989425 #C9C431 #D8D45F #E4E190 #F0EEC1

Accessibility & contrast

On white

1.56
#D8D45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.50
#D8D45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D45F
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D45F#FFFFFF#000000##000000
##D8D45F1.001.5613.5013.50
#FFFFFF1.561.0021.0021.00
#00000013.5021.001.001.00
##00000013.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CD53
Deuteranopia (green-blind)
#E6D165
Tritanopia (blue-blind)
#E6C8BA
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d8d45f;
/* rgb */ color: rgb(216, 212, 95);
/* oklch */ color: oklch(85.0% 0.139 107.2);
Tailwind
colors: {
  custom: {
    50: '#e7e190',
    500: '#d8d45f',
    950: '#000000',
  },
}
SCSS
$custom: #d8d45f;
$custom-light: #e7e190;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d45f",
  "rgb": {
    "r": 216,
    "g": 212,
    "b": 95
  },
  "hsl": {
    "h": 58.017,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.85035,
    "c": 0.13886,
    "h": 107.2
  },
  "luminance": 0.62512
}

Semantic roles & 50–950 ramp

primary
#D8D45F
secondary
#3F429C
accent
#23C81D
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150D
muted
#85847F

Preview Lab

Preview with #D8D45F

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

Preview Lab → · Contrast checker → · Palette generator →

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