#D4D340#D4D340

#D4D340 is a very light, vivid yellow. Relative luminance 0.610; OKLCH L 84.2% C 0.162 H 109.0°. Best body text is #000000 at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#D4D340
RGBrgb(212, 211, 64)
HSLhsl(60, 63%, 54%)
HSVhsv(60, 70%, 83%)
CMYKcmyk(0%, 0.5%, 69.8%, 16.9%)
CIE-LABlab(82.36, -16.66, 68.85)
CIE-LCHlch(82.36, 70.84, 103.60°)
OKLaboklab(84.22% -0.0527 0.1529)
OKLCHoklch(84.22% 0.162 109)
XYZxyz(51.3729, 60.9573, 13.9093)
Luminance0.6096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D340 #4041D4
analogous
#D48940 #D4D340 #8BD440
triadic
#D4D340 #40D4D3 #D340D4
tetradic
#D4D340 #40D489 #4041D4 #D4408B
square
#D4D340 #40D489 #4041D4 #D4408B
split-complementary
#D4D340 #408BD4 #8940D4
monochromatic
#7D7D1C #AFAE27 #D4D340 #DFDF72 #EAEAA4

Accessibility & contrast

On white

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

On black

13.19
#D4D340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D340
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D340#FFFFFF#000000##000000
##D4D3401.001.5913.1913.19
#FFFFFF1.591.0021.0021.00
#00000013.1921.001.001.00
##00000013.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4d340;
/* rgb */ color: rgb(212, 211, 64);
/* oklch */ color: oklch(84.2% 0.162 109.0);
Tailwind
colors: {
  custom: {
    50: '#e5e07e',
    500: '#d4d340',
    950: '#000000',
  },
}
SCSS
$custom: #d4d340;
$custom-light: #e5e07e;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d340",
  "rgb": {
    "r": 212,
    "g": 211,
    "b": 64
  },
  "hsl": {
    "h": 59.595,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.84217,
    "c": 0.16171,
    "h": 109
  },
  "luminance": 0.60956
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4D340

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

Preview Lab → · Contrast checker → · Palette generator →

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