#D2C874#D2C874

#D2C874 is a very light, moderate yellow. Relative luminance 0.563; OKLCH L 82.3% C 0.106 H 102.5°. Best body text is #000000 at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#D2C874
RGBrgb(210, 200, 116)
HSLhsl(54, 51%, 64%)
HSVhsv(54, 45%, 82%)
CMYKcmyk(0%, 4.8%, 44.8%, 17.6%)
CIE-LABlab(79.77, -8.13, 43.10)
CIE-LCHlch(79.77, 43.86, 100.69°)
OKLaboklab(82.28% -0.023 0.1038)
OKLCHoklch(82.28% 0.106 102.5)
XYZxyz(50.3862, 56.2726, 24.7271)
Luminance0.5627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C874 #747ED2
analogous
#D29974 #D2C874 #ADD274
triadic
#D2C874 #74D2C8 #C874D2
tetradic
#D2C874 #74D299 #747ED2 #D274AD
square
#D2C874 #74D299 #747ED2 #D274AD
split-complementary
#D2C874 #74ADD2 #9974D2
monochromatic
#9A8F32 #C3B646 #D2C874 #E1DAA2 #F0EDD0

Accessibility & contrast

On white

1.71
#D2C874 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.25
#D2C874 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C874
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C874#FFFFFF#000000##000000
##D2C8741.001.7112.2512.25
#FFFFFF1.711.0021.0021.00
#00000012.2521.001.001.00
##00000012.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C36D
Deuteranopia (green-blind)
#D9C878
Tritanopia (blue-blind)
#DEBEB4
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d2c874;
/* rgb */ color: rgb(210, 200, 116);
/* oklch */ color: oklch(82.3% 0.106 102.5);
Tailwind
colors: {
  custom: {
    50: '#e1d89d',
    500: '#d2c874',
    950: '#000000',
  },
}
SCSS
$custom: #d2c874;
$custom-light: #e1d89d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c874",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 116
  },
  "hsl": {
    "h": 53.617,
    "s": 51.087,
    "l": 63.922
  },
  "oklch": {
    "l": 0.82277,
    "c": 0.10629,
    "h": 102.5
  },
  "luminance": 0.56271
}

Semantic roles & 50–950 ramp

primary
#D2C874
secondary
#4B549F
accent
#37BE27
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #D2C874

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

Preview Lab → · Contrast checker → · Palette generator →

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