#D2D940#D2D940

#D2D940 is a very light, vivid yellow. Relative luminance 0.637; OKLCH L 85.3% C 0.168 H 112.1°. Best body text is #000000 at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#D2D940
RGBrgb(210, 217, 64)
HSLhsl(63, 67%, 55%)
HSVhsv(63, 71%, 85%)
CMYKcmyk(3.2%, 0%, 70.5%, 14.9%)
CIE-LABlab(83.81, -20.44, 70.21)
CIE-LCHlch(83.81, 73.13, 106.23°)
OKLaboklab(85.34% -0.0632 0.1558)
OKLCHoklch(85.34% 0.168 112.1)
XYZxyz(52.3183, 63.6988, 14.3886)
Luminance0.6370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D940 #4740D9
analogous
#D99340 #D2D940 #86D940
triadic
#D2D940 #40D2D9 #D940D2
tetradic
#D2D940 #40D993 #4740D9 #D94086
square
#D2D940 #40D993 #4740D9 #D94086
split-complementary
#D2D940 #4086D9 #9340D9
monochromatic
#7F841A #B1B724 #D2D940 #DEE373 #EAEDA6

Accessibility & contrast

On white

1.53
#D2D940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.74
#D2D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D940
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D940#FFFFFF#000000##000000
##D2D9401.001.5313.7413.74
#FFFFFF1.531.0021.0021.00
#00000013.7421.001.001.00
##00000013.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF24
Deuteranopia (green-blind)
#EAD34C
Tritanopia (blue-blind)
#E0CCBB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d940;
/* rgb */ color: rgb(210, 217, 64);
/* oklch */ color: oklch(85.3% 0.168 112.1);
Tailwind
colors: {
  custom: {
    50: '#e3e47f',
    500: '#d2d940',
    950: '#000000',
  },
}
SCSS
$custom: #d2d940;
$custom-light: #e3e47f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d940",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 62.745,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.8534,
    "c": 0.16813,
    "h": 112.1
  },
  "luminance": 0.63698
}

Semantic roles & 50–950 ramp

primary
#D2D940
secondary
#36328B
accent
#3EEA46
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D940

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

Preview Lab → · Contrast checker → · Palette generator →

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