#D3D540#D3D540

#D3D540 is a very light, vivid yellow. Relative luminance 0.618; OKLCH L 84.6% C 0.164 H 110.2°. Best body text is #000000 at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#D3D540
RGBrgb(211, 213, 64)
HSLhsl(61, 64%, 54%)
HSVhsv(61, 70%, 84%)
CMYKcmyk(0.9%, 0%, 70%, 16.5%)
CIE-LABlab(82.81, -18.06, 69.27)
CIE-LCHlch(82.81, 71.59, 104.62°)
OKLaboklab(84.56% -0.0566 0.1538)
OKLCHoklch(84.56% 0.164 110.2)
XYZxyz(51.5854, 61.8090, 14.0625)
Luminance0.6181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3D540 #4240D5
analogous
#D58C40 #D3D540 #89D540
triadic
#D3D540 #40D3D5 #D540D3
tetradic
#D3D540 #40D58C #4240D5 #D54089
square
#D3D540 #40D58C #4240D5 #D54089
split-complementary
#D3D540 #4089D5 #8C40D5
monochromatic
#7D7F1C #AFB127 #D3D540 #DFE072 #EAEBA4

Accessibility & contrast

On white

1.57
#D3D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.36
#D3D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3D540
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3D540#FFFFFF#000000##000000
##D3D5401.001.5713.3613.36
#FFFFFF1.571.0021.0021.00
#00000013.3621.001.001.00
##00000013.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC26
Deuteranopia (green-blind)
#E7D04B
Tritanopia (blue-blind)
#E2C8B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d3d540;
/* rgb */ color: rgb(211, 213, 64);
/* oklch */ color: oklch(84.6% 0.164 110.2);
Tailwind
colors: {
  custom: {
    50: '#e4e17e',
    500: '#d3d540',
    950: '#000000',
  },
}
SCSS
$custom: #d3d540;
$custom-light: #e4e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#d3d540",
  "rgb": {
    "r": 211,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 60.805,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.84562,
    "c": 0.16387,
    "h": 110.2
  },
  "luminance": 0.61808
}

Semantic roles & 50–950 ramp

primary
#D3D540
secondary
#343386
accent
#41E743
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D3D540

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

Preview Lab → · Contrast checker → · Palette generator →

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