#D3D240#D3D240

#D3D240 is a very light, vivid yellow. Relative luminance 0.603; OKLCH L 83.9% C 0.161 H 109.0°. Best body text is #000000 at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#D3D240
RGBrgb(211, 210, 64)
HSLhsl(60, 63%, 54%)
HSVhsv(60, 70%, 83%)
CMYKcmyk(0%, 0.5%, 69.7%, 17.3%)
CIE-LABlab(82.01, -16.58, 68.49)
CIE-LCHlch(82.01, 70.46, 103.61°)
OKLaboklab(83.92% -0.0525 0.1521)
OKLCHoklch(83.92% 0.161 109)
XYZxyz(50.8378, 60.3138, 13.8133)
Luminance0.6031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3D240 #4041D3
analogous
#D38940 #D3D240 #8BD340
triadic
#D3D240 #40D3D2 #D240D3
tetradic
#D3D240 #40D389 #4041D3 #D3408B
square
#D3D240 #40D389 #4041D3 #D3408B
split-complementary
#D3D240 #408BD3 #8940D3
monochromatic
#7C7B1D #AEAD28 #D3D240 #DEDE72 #EAE9A3

Accessibility & contrast

On white

1.61
#D3D240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.06
#D3D240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3D240
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3D240#FFFFFF#000000##000000
##D3D2401.001.6113.0613.06
#FFFFFF1.611.0021.0021.00
#00000013.0621.001.001.00
##00000013.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C927
Deuteranopia (green-blind)
#E5CE4B
Tritanopia (blue-blind)
#E2C5B5
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d3d240;
/* rgb */ color: rgb(211, 210, 64);
/* oklch */ color: oklch(83.9% 0.161 109.0);
Tailwind
colors: {
  custom: {
    50: '#e4df7e',
    500: '#d3d240',
    950: '#000000',
  },
}
SCSS
$custom: #d3d240;
$custom-light: #e4df7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d3d240",
  "rgb": {
    "r": 211,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 59.592,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.8392,
    "c": 0.16091,
    "h": 109
  },
  "luminance": 0.60312
}

Semantic roles & 50–950 ramp

primary
#D3D240
secondary
#333484
accent
#43E642
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D3D240

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

Preview Lab → · Contrast checker → · Palette generator →

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