#D2C845#D2C845

#D2C845 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.148 H 104.9°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D2C845
RGBrgb(210, 200, 69)
HSLhsl(56, 61%, 55%)
HSVhsv(56, 67%, 82%)
CMYKcmyk(0%, 4.8%, 67.1%, 17.6%)
CIE-LABlab(79.30, -11.73, 63.87)
CIE-LCHlch(79.30, 64.94, 100.41°)
OKLaboklab(81.75% -0.0382 0.1433)
OKLCHoklch(81.75% 0.148 104.9)
XYZxyz(48.3087, 55.4417, 13.7857)
Luminance0.5544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C845 #454FD2
analogous
#D28245 #D2C845 #95D245
triadic
#D2C845 #45D2C8 #C845D2
tetradic
#D2C845 #45D282 #454FD2 #D24595
square
#D2C845 #45D282 #454FD2 #D24595
split-complementary
#D2C845 #4595D2 #8245D2
monochromatic
#7E771F #AFA62A #D2C845 #DED776 #EAE5A8

Accessibility & contrast

On white

1.74
#D2C845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#D2C845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C845
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C845#FFFFFF#000000##000000
##D2C8451.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C132
Deuteranopia (green-blind)
#DDC74D
Tritanopia (blue-blind)
#E1BBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c845;
/* rgb */ color: rgb(210, 200, 69);
/* oklch */ color: oklch(81.7% 0.148 104.9);
Tailwind
colors: {
  custom: {
    50: '#e3d880',
    500: '#d2c845',
    950: '#000000',
  },
}
SCSS
$custom: #d2c845;
$custom-light: #e3d880;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c845",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 69
  },
  "hsl": {
    "h": 55.745,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81748,
    "c": 0.14828,
    "h": 104.9
  },
  "luminance": 0.5544
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C845

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

Preview Lab → · Contrast checker → · Palette generator →

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