#D2D12D#D2D12D

#D2D12D is a very light, vivid yellow. Relative luminance 0.595; OKLCH L 83.5% C 0.170 H 109.2°. Best body text is #000000 at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#D2D12D
RGBrgb(210, 209, 45)
HSLhsl(60, 65%, 50%)
HSVhsv(60, 79%, 82%)
CMYKcmyk(0%, 0.5%, 78.6%, 17.6%)
CIE-LABlab(81.56, -17.29, 74.11)
CIE-LCHlch(81.56, 76.10, 103.13°)
OKLaboklab(83.51% -0.056 0.1608)
OKLCHoklch(83.51% 0.17 109.2)
XYZxyz(49.8544, 59.4936, 11.3394)
Luminance0.5949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D12D #2D2ED2
analogous
#D27E2D #D2D12D #81D22D
triadic
#D2D12D #2DD2D1 #D12DD2
tetradic
#D2D12D #2DD27E #2D2ED2 #D22D81
square
#D2D12D #2DD27E #2D2ED2 #D22D81
split-complementary
#D2D12D #2D81D2 #7E2DD2
monochromatic
#6D6D17 #A09F22 #D2D12D #DDDC5F #E8E792

Accessibility & contrast

On white

1.63
#D2D12D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.90
#D2D12D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D12D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D12D#FFFFFF#000000##000000
##D2D12D1.001.6312.9012.90
#FFFFFF1.631.0021.0021.00
#00000012.9021.001.001.00
##00000012.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C800
Deuteranopia (green-blind)
#E4CD3C
Tritanopia (blue-blind)
#E1C3B3
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d2d12d;
/* rgb */ color: rgb(210, 209, 45);
/* oklch */ color: oklch(83.5% 0.170 109.2);
Tailwind
colors: {
  custom: {
    50: '#e4de75',
    500: '#d2d12d',
    950: '#000000',
  },
}
SCSS
$custom: #d2d12d;
$custom-light: #e4de75;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d12d",
  "rgb": {
    "r": 210,
    "g": 209,
    "b": 45
  },
  "hsl": {
    "h": 59.636,
    "s": 64.706,
    "l": 50
  },
  "oklch": {
    "l": 0.83513,
    "c": 0.17024,
    "h": 109.2
  },
  "luminance": 0.59492
}

Semantic roles & 50–950 ramp

primary
#D2D12D
secondary
#2D2D77
accent
#41E840
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#161509
muted
#85847D

Preview Lab

Preview with #D2D12D

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

Preview Lab → · Contrast checker → · Palette generator →

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