#D5D340#D5D340

#D5D340 is a very light, vivid yellow. Relative luminance 0.611; OKLCH L 84.3% C 0.162 H 108.6°. Best body text is #000000 at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#D5D340
RGBrgb(213, 211, 64)
HSLhsl(59, 64%, 54%)
HSVhsv(59, 70%, 84%)
CMYKcmyk(0%, 0.9%, 70%, 16.5%)
CIE-LABlab(82.44, -16.24, 68.96)
CIE-LCHlch(82.44, 70.84, 103.25°)
OKLaboklab(84.3% -0.0516 0.1531)
OKLCHoklch(84.3% 0.162 108.6)
XYZxyz(51.6621, 61.1064, 13.9228)
Luminance0.6110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D340 #4042D5
analogous
#D58940 #D5D340 #8CD540
triadic
#D5D340 #40D5D3 #D340D5
tetradic
#D5D340 #40D589 #4042D5 #D5408C
square
#D5D340 #40D589 #4042D5 #D5408C
split-complementary
#D5D340 #408CD5 #8940D5
monochromatic
#7F7D1C #B1AF27 #D5D340 #E0DF72 #EBEAA4

Accessibility & contrast

On white

1.59
#D5D340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.22
#D5D340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D340
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D340#FFFFFF#000000##000000
##D5D3401.001.5913.2213.22
#FFFFFF1.591.0021.0021.00
#00000013.2221.001.001.00
##00000013.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CA27
Deuteranopia (green-blind)
#E6CF4B
Tritanopia (blue-blind)
#E4C6B6
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d5d340;
/* rgb */ color: rgb(213, 211, 64);
/* oklch */ color: oklch(84.3% 0.162 108.6);
Tailwind
colors: {
  custom: {
    50: '#e6e07e',
    500: '#d5d340',
    950: '#000000',
  },
}
SCSS
$custom: #d5d340;
$custom-light: #e6e07e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d340",
  "rgb": {
    "r": 213,
    "g": 211,
    "b": 64
  },
  "hsl": {
    "h": 59.195,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.84301,
    "c": 0.16153,
    "h": 108.6
  },
  "luminance": 0.61105
}

Semantic roles & 50–950 ramp

primary
#D5D340
secondary
#333486
accent
#43E741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D5D340

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

Preview Lab → · Contrast checker → · Palette generator →

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