#D2D945#D2D945

#D2D945 is a very light, vivid yellow. Relative luminance 0.638; OKLCH L 85.4% C 0.165 H 112.1°. Best body text is #000000 at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#D2D945
RGBrgb(210, 217, 69)
HSLhsl(63, 66%, 56%)
HSVhsv(63, 68%, 85%)
CMYKcmyk(3.2%, 0%, 68.2%, 14.9%)
CIE-LABlab(83.84, -20.18, 68.45)
CIE-LCHlch(83.84, 71.36, 106.43°)
OKLaboklab(85.38% -0.062 0.1529)
OKLCHoklch(85.38% 0.165 112.1)
XYZxyz(52.4670, 63.7583, 15.1718)
Luminance0.6376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D945 #4C45D9
analogous
#D99645 #D2D945 #88D945
triadic
#D2D945 #45D2D9 #D945D2
tetradic
#D2D945 #45D996 #4C45D9 #D94588
square
#D2D945 #45D996 #4C45D9 #D94588
split-complementary
#D2D945 #4588D9 #9645D9
monochromatic
#83881C #B4BB26 #D2D945 #DEE378 #EBEEAB

Accessibility & contrast

On white

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

On black

13.75
#D2D945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D945
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D945#FFFFFF#000000##000000
##D2D9451.001.5313.7513.75
#FFFFFF1.531.0021.0021.00
#00000013.7521.001.001.00
##00000013.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF2D
Deuteranopia (green-blind)
#EAD350
Tritanopia (blue-blind)
#E0CCBC
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d945;
/* rgb */ color: rgb(210, 217, 69);
/* oklch */ color: oklch(85.4% 0.165 112.1);
Tailwind
colors: {
  custom: {
    50: '#e3e481',
    500: '#d2d945',
    950: '#000000',
  },
}
SCSS
$custom: #d2d945;
$custom-light: #e3e481;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d945",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 69
  },
  "hsl": {
    "h": 62.838,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.85375,
    "c": 0.16501,
    "h": 112.1
  },
  "luminance": 0.63757
}

Semantic roles & 50–950 ramp

primary
#D2D945
secondary
#38348E
accent
#3FE947
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D945

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

Preview Lab → · Contrast checker → · Palette generator →

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