#D3D040#D3D040

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

Color values

HEX#D3D040
RGBrgb(211, 208, 64)
HSLhsl(59, 63%, 54%)
HSVhsv(59, 70%, 83%)
CMYKcmyk(0%, 1.4%, 69.7%, 17.3%)
CIE-LABlab(81.47, -15.59, 67.96)
CIE-LCHlch(81.47, 69.73, 102.92°)
OKLaboklab(83.49% -0.0497 0.151)
OKLCHoklch(83.49% 0.159 108.2)
XYZxyz(50.3471, 59.3324, 13.6497)
Luminance0.5933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3D040 #4043D3
analogous
#D38740 #D3D040 #8CD340
triadic
#D3D040 #40D3D0 #D040D3
tetradic
#D3D040 #40D387 #4043D3 #D3408C
square
#D3D040 #40D387 #4043D3 #D3408C
split-complementary
#D3D040 #408CD3 #8740D3
monochromatic
#7C7A1D #AEAB28 #D3D040 #DEDC72 #EAE8A3

Accessibility & contrast

On white

1.63
#D3D040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.87
#D3D040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3D040
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3D040#FFFFFF#000000##000000
##D3D0401.001.6312.8712.87
#FFFFFF1.631.0021.0021.00
#00000012.8721.001.001.00
##00000012.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C828
Deuteranopia (green-blind)
#E3CD4A
Tritanopia (blue-blind)
#E2C3B4
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d3d040;
/* rgb */ color: rgb(211, 208, 64);
/* oklch */ color: oklch(83.5% 0.159 108.2);
Tailwind
colors: {
  custom: {
    50: '#e4de7e',
    500: '#d3d040',
    950: '#000000',
  },
}
SCSS
$custom: #d3d040;
$custom-light: #e4de7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d3d040",
  "rgb": {
    "r": 211,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 58.776,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.83494,
    "c": 0.15898,
    "h": 108.2
  },
  "luminance": 0.59331
}

Semantic roles & 50–950 ramp

primary
#D3D040
secondary
#333584
accent
#46E642
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D3D040

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

Preview Lab → · Contrast checker → · Palette generator →

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