#D5D152#D5D152

#D5D152 is a very light, vivid yellow. Relative luminance 0.604; OKLCH L 84.0% C 0.147 H 107.5°. Best body text is #000000 at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#D5D152
RGBrgb(213, 209, 82)
HSLhsl(58, 61%, 58%)
HSVhsv(58, 62%, 84%)
CMYKcmyk(0%, 1.9%, 61.5%, 16.5%)
CIE-LABlab(82.03, -14.23, 61.53)
CIE-LCHlch(82.03, 63.15, 103.02°)
OKLaboklab(84.02% -0.0441 0.1402)
OKLCHoklch(84.02% 0.147 107.5)
XYZxyz(51.7657, 60.3579, 16.9044)
Luminance0.6036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D152 #5256D5
analogous
#D58F52 #D5D152 #97D552
triadic
#D5D152 #52D5D1 #D152D5
tetradic
#D5D152 #52D58F #5256D5 #D55297
square
#D5D152 #52D58F #5256D5 #D55297
split-complementary
#D5D152 #5297D5 #8F52D5
monochromatic
#8B8822 #BCB82E #D5D152 #E1DE83 #EDEBB4

Accessibility & contrast

On white

1.61
#D5D152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.07
#D5D152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D152
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D152#FFFFFF#000000##000000
##D5D1521.001.6113.0713.07
#FFFFFF1.611.0021.0021.00
#00000013.0721.001.001.00
##00000013.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C943
Deuteranopia (green-blind)
#E4CE5A
Tritanopia (blue-blind)
#E3C4B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d5d152;
/* rgb */ color: rgb(213, 209, 82);
/* oklch */ color: oklch(84.0% 0.147 107.5);
Tailwind
colors: {
  custom: {
    50: '#e5de88',
    500: '#d5d152',
    950: '#000000',
  },
}
SCSS
$custom: #d5d152;
$custom-light: #e5de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d152",
  "rgb": {
    "r": 213,
    "g": 209,
    "b": 82
  },
  "hsl": {
    "h": 58.168,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.8402,
    "c": 0.14698,
    "h": 107.5
  },
  "luminance": 0.60356
}

Semantic roles & 50–950 ramp

primary
#D5D152
secondary
#3A3D91
accent
#49E444
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D5D152

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

Preview Lab → · Contrast checker → · Palette generator →

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