#D5D242#D5D242

#D5D242 is a very light, vivid yellow. Relative luminance 0.606; OKLCH L 84.1% C 0.159 H 108.2°. Best body text is #000000 at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#D5D242
RGBrgb(213, 210, 66)
HSLhsl(59, 64%, 55%)
HSVhsv(59, 69%, 84%)
CMYKcmyk(0%, 1.4%, 69%, 16.5%)
CIE-LABlab(82.18, -15.65, 67.99)
CIE-LCHlch(82.18, 69.76, 102.96°)
OKLaboklab(84.1% -0.0497 0.1513)
OKLCHoklch(84.1% 0.159 108.2)
XYZxyz(51.4724, 60.6343, 14.1454)
Luminance0.6063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D242 #4245D5
analogous
#D58942 #D5D242 #8ED542
triadic
#D5D242 #42D5D2 #D242D5
tetradic
#D5D242 #42D589 #4245D5 #D5428E
square
#D5D242 #42D589 #4245D5 #D5428E
split-complementary
#D5D242 #428ED5 #8942D5
monochromatic
#807E1C #B2AF28 #D5D242 #E0DE74 #EBEAA6

Accessibility & contrast

On white

1.60
#D5D242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.13
#D5D242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D242
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D242#FFFFFF#000000##000000
##D5D2421.001.6013.1313.13
#FFFFFF1.601.0021.0021.00
#00000013.1321.001.001.00
##00000013.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA2B
Deuteranopia (green-blind)
#E5CF4C
Tritanopia (blue-blind)
#E4C5B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d5d242;
/* rgb */ color: rgb(213, 210, 66);
/* oklch */ color: oklch(84.1% 0.159 108.2);
Tailwind
colors: {
  custom: {
    50: '#e5df7f',
    500: '#d5d242',
    950: '#000000',
  },
}
SCSS
$custom: #d5d242;
$custom-light: #e5df7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d242",
  "rgb": {
    "r": 213,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 58.776,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.84102,
    "c": 0.15931,
    "h": 108.2
  },
  "luminance": 0.60633
}

Semantic roles & 50–950 ramp

primary
#D5D242
secondary
#343687
accent
#45E741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5D242

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

Preview Lab → · Contrast checker → · Palette generator →

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