#D2C947#D2C947

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

Color values

HEX#D2C947
RGBrgb(210, 201, 71)
HSLhsl(56, 61%, 55%)
HSVhsv(56, 66%, 82%)
CMYKcmyk(0%, 4.3%, 66.2%, 17.6%)
CIE-LABlab(79.57, -12.12, 63.37)
CIE-LCHlch(79.57, 64.52, 100.83°)
OKLaboklab(81.98% -0.0391 0.1425)
OKLCHoklch(81.98% 0.148 105.4)
XYZxyz(48.6042, 55.9316, 14.1956)
Luminance0.5593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C947 #4750D2
analogous
#D28347 #D2C947 #96D247
triadic
#D2C947 #47D2C9 #C947D2
tetradic
#D2C947 #47D283 #4750D2 #D24796
square
#D2C947 #47D283 #4750D2 #D24796
split-complementary
#D2C947 #4796D2 #8347D2
monochromatic
#7F791F #B1A82B #D2C947 #DED778 #EAE6A9

Accessibility & contrast

On white

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

On black

12.19
#D2C947 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C947
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C947#FFFFFF#000000##000000
##D2C9471.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC235
Deuteranopia (green-blind)
#DDC84F
Tritanopia (blue-blind)
#E1BCAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c947;
/* rgb */ color: rgb(210, 201, 71);
/* oklch */ color: oklch(82.0% 0.148 105.4);
Tailwind
colors: {
  custom: {
    50: '#e3d981',
    500: '#d2c947',
    950: '#000000',
  },
}
SCSS
$custom: #d2c947;
$custom-light: #e3d981;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c947",
  "rgb": {
    "r": 210,
    "g": 201,
    "b": 71
  },
  "hsl": {
    "h": 56.115,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81975,
    "c": 0.1478,
    "h": 105.4
  },
  "luminance": 0.5593
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C947

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

Preview Lab → · Contrast checker → · Palette generator →

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