#D4D240#D4D240

#D4D240 is a very light, vivid yellow. Relative luminance 0.605; OKLCH L 84.0% C 0.161 H 108.6°. Best body text is #000000 at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#D4D240
RGBrgb(212, 210, 64)
HSLhsl(59, 63%, 54%)
HSVhsv(59, 70%, 83%)
CMYKcmyk(0%, 0.9%, 69.8%, 16.9%)
CIE-LABlab(82.09, -16.16, 68.59)
CIE-LCHlch(82.09, 70.47, 103.26°)
OKLaboklab(84% -0.0513 0.1523)
OKLCHoklch(84% 0.161 108.6)
XYZxyz(51.1252, 60.4620, 13.8267)
Luminance0.6046 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D240 #4042D4
analogous
#D48840 #D4D240 #8CD440
triadic
#D4D240 #40D4D2 #D240D4
tetradic
#D4D240 #40D488 #4042D4 #D4408C
square
#D4D240 #40D488 #4042D4 #D4408C
split-complementary
#D4D240 #408CD4 #8840D4
monochromatic
#7D7C1C #AFAD27 #D4D240 #DFDE72 #EAEAA4

Accessibility & contrast

On white

1.60
#D4D240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.09
#D4D240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D240
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D240#FFFFFF#000000##000000
##D4D2401.001.6013.0913.09
#FFFFFF1.601.0021.0021.00
#00000013.0921.001.001.00
##00000013.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4d240;
/* rgb */ color: rgb(212, 210, 64);
/* oklch */ color: oklch(84.0% 0.161 108.6);
Tailwind
colors: {
  custom: {
    50: '#e5df7e',
    500: '#d4d240',
    950: '#000000',
  },
}
SCSS
$custom: #d4d240;
$custom-light: #e5df7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d240",
  "rgb": {
    "r": 212,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 59.189,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.84004,
    "c": 0.16073,
    "h": 108.6
  },
  "luminance": 0.6046
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4D240

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

Preview Lab → · Contrast checker → · Palette generator →

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