#D2C945#D2C945

#D2C945 is a light, vivid yellow. Relative luminance 0.559; OKLCH L 82.0% C 0.149 H 105.4°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#D2C945
RGBrgb(210, 201, 69)
HSLhsl(56, 61%, 55%)
HSVhsv(56, 67%, 82%)
CMYKcmyk(0%, 4.3%, 67.1%, 17.6%)
CIE-LABlab(79.56, -12.24, 64.14)
CIE-LCHlch(79.56, 65.30, 100.80°)
OKLaboklab(81.96% -0.0397 0.1438)
OKLCHoklch(81.96% 0.149 105.4)
XYZxyz(48.5410, 55.9064, 13.8632)
Luminance0.5591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C945 #454ED2
analogous
#D28245 #D2C945 #95D245
triadic
#D2C945 #45D2C9 #C945D2
tetradic
#D2C945 #45D282 #454ED2 #D24595
square
#D2C945 #45D282 #454ED2 #D24595
split-complementary
#D2C945 #4595D2 #8245D2
monochromatic
#7E781F #AFA72A #D2C945 #DED776 #EAE6A8

Accessibility & contrast

On white

1.72
#D2C945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#D2C945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C945
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C945#FFFFFF#000000##000000
##D2C9451.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC232
Deuteranopia (green-blind)
#DDC84D
Tritanopia (blue-blind)
#E1BCAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c945;
/* rgb */ color: rgb(210, 201, 69);
/* oklch */ color: oklch(82.0% 0.149 105.4);
Tailwind
colors: {
  custom: {
    50: '#e3d980',
    500: '#d2c945',
    950: '#000000',
  },
}
SCSS
$custom: #d2c945;
$custom-light: #e3d980;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c945",
  "rgb": {
    "r": 210,
    "g": 201,
    "b": 69
  },
  "hsl": {
    "h": 56.17,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81959,
    "c": 0.1492,
    "h": 105.4
  },
  "luminance": 0.55905
}

Semantic roles & 50–950 ramp

primary
#D2C945
secondary
#363B86
accent
#4EE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C945

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

Preview Lab → · Contrast checker → · Palette generator →

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