#D2D340#D2D340

#D2D340 is a very light, vivid yellow. Relative luminance 0.607; OKLCH L 84.1% C 0.162 H 109.8°. Best body text is #000000 at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#D2D340
RGBrgb(210, 211, 64)
HSLhsl(60, 63%, 54%)
HSVhsv(60, 70%, 83%)
CMYKcmyk(0.5%, 0%, 69.7%, 17.3%)
CIE-LABlab(82.20, -17.49, 68.64)
CIE-LCHlch(82.20, 70.84, 104.30°)
OKLaboklab(84.05% -0.055 0.1525)
OKLCHoklch(84.05% 0.162 109.8)
XYZxyz(50.7998, 60.6618, 13.8824)
Luminance0.6066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D340 #4140D3
analogous
#D38B40 #D2D340 #89D340
triadic
#D2D340 #40D2D3 #D340D2
tetradic
#D2D340 #40D38B #4140D3 #D34089
square
#D2D340 #40D38B #4140D3 #D34089
split-complementary
#D2D340 #4089D3 #8B40D3
monochromatic
#7B7C1D #ADAE28 #D2D340 #DEDE72 #E9EAA3

Accessibility & contrast

On white

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

On black

13.13
#D2D340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D340
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D340#FFFFFF#000000##000000
##D2D3401.001.6013.1313.13
#FFFFFF1.601.0021.0021.00
#00000013.1321.001.001.00
##00000013.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CA27
Deuteranopia (green-blind)
#E5CF4B
Tritanopia (blue-blind)
#E1C6B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d2d340;
/* rgb */ color: rgb(210, 211, 64);
/* oklch */ color: oklch(84.1% 0.162 109.8);
Tailwind
colors: {
  custom: {
    50: '#e3e07e',
    500: '#d2d340',
    950: '#000000',
  },
}
SCSS
$custom: #d2d340;
$custom-light: #e3e07e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d340",
  "rgb": {
    "r": 210,
    "g": 211,
    "b": 64
  },
  "hsl": {
    "h": 60.408,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.84051,
    "c": 0.16209,
    "h": 109.8
  },
  "luminance": 0.6066
}

Semantic roles & 50–950 ramp

primary
#D2D340
secondary
#343384
accent
#42E643
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D340

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

Preview Lab → · Contrast checker → · Palette generator →

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