#D5D945#D5D945

#D5D945 is a very light, vivid yellow. Relative luminance 0.642; OKLCH L 85.6% C 0.164 H 110.9°. Best body text is #000000 at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#D5D945
RGBrgb(213, 217, 69)
HSLhsl(62, 66%, 56%)
HSVhsv(62, 68%, 85%)
CMYKcmyk(1.8%, 0%, 68.2%, 14.9%)
CIE-LABlab(84.07, -18.95, 68.76)
CIE-LCHlch(84.07, 71.32, 105.41°)
OKLaboklab(85.62% -0.0587 0.1535)
OKLCHoklch(85.62% 0.164 110.9)
XYZxyz(53.3293, 64.2029, 15.2122)
Luminance0.6420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D945 #4945D9
analogous
#D99345 #D5D945 #8BD945
triadic
#D5D945 #45D5D9 #D945D5
tetradic
#D5D945 #45D993 #4945D9 #D9458B
square
#D5D945 #45D993 #4945D9 #D9458B
split-complementary
#D5D945 #458BD9 #9345D9
monochromatic
#85881C #B7BB26 #D5D945 #E0E378 #ECEEAB

Accessibility & contrast

On white

1.52
#D5D945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.84
#D5D945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D945
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D945#FFFFFF#000000##000000
##D5D9451.001.5213.8413.84
#FFFFFF1.521.0021.0021.00
#00000013.8421.001.001.00
##00000013.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD02D
Deuteranopia (green-blind)
#EBD450
Tritanopia (blue-blind)
#E3CCBC
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d5d945;
/* rgb */ color: rgb(213, 217, 69);
/* oklch */ color: oklch(85.6% 0.164 110.9);
Tailwind
colors: {
  custom: {
    50: '#e5e481',
    500: '#d5d945',
    950: '#000000',
  },
}
SCSS
$custom: #d5d945;
$custom-light: #e5e481;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d945",
  "rgb": {
    "r": 213,
    "g": 217,
    "b": 69
  },
  "hsl": {
    "h": 61.622,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.85617,
    "c": 0.16432,
    "h": 110.9
  },
  "luminance": 0.64202
}

Semantic roles & 50–950 ramp

primary
#D5D945
secondary
#37348E
accent
#3FE943
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5D945

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

Preview Lab → · Contrast checker → · Palette generator →

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