#D2D640#D2D640

#D2D640 is a very light, vivid yellow. Relative luminance 0.622; OKLCH L 84.7% C 0.165 H 111.0°. Best body text is #000000 at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#D2D640
RGBrgb(210, 214, 64)
HSLhsl(62, 65%, 55%)
HSVhsv(62, 70%, 84%)
CMYKcmyk(1.9%, 0%, 70.1%, 16.1%)
CIE-LABlab(83.00, -18.97, 69.43)
CIE-LCHlch(83.00, 71.97, 105.28°)
OKLaboklab(84.7% -0.0591 0.1541)
OKLCHoklch(84.7% 0.165 111)
XYZxyz(51.5520, 62.1663, 14.1332)
Luminance0.6217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D640 #4440D6
analogous
#D68F40 #D2D640 #87D640
triadic
#D2D640 #40D2D6 #D640D2
tetradic
#D2D640 #40D68F #4440D6 #D64087
square
#D2D640 #40D68F #4440D6 #D64087
split-complementary
#D2D640 #4087D6 #8F40D6
monochromatic
#7D801B #AFB226 #D2D640 #DEE172 #EAECA5

Accessibility & contrast

On white

1.56
#D2D640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.43
#D2D640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D640
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D640#FFFFFF#000000##000000
##D2D6401.001.5613.4313.43
#FFFFFF1.561.0021.0021.00
#00000013.4321.001.001.00
##00000013.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD26
Deuteranopia (green-blind)
#E8D14B
Tritanopia (blue-blind)
#E0C9B9
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d2d640;
/* rgb */ color: rgb(210, 214, 64);
/* oklch */ color: oklch(84.7% 0.165 111.0);
Tailwind
colors: {
  custom: {
    50: '#e3e27e',
    500: '#d2d640',
    950: '#000000',
  },
}
SCSS
$custom: #d2d640;
$custom-light: #e3e27e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d640",
  "rgb": {
    "r": 210,
    "g": 214,
    "b": 64
  },
  "hsl": {
    "h": 61.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.84695,
    "c": 0.16508,
    "h": 111
  },
  "luminance": 0.62165
}

Semantic roles & 50–950 ramp

primary
#D2D640
secondary
#353387
accent
#40E845
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D640

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

Preview Lab → · Contrast checker → · Palette generator →

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