#D2C74A#D2C74A

#D2C74A is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.6% C 0.144 H 104.3°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#D2C74A
RGBrgb(210, 199, 74)
HSLhsl(55, 60%, 56%)
HSVhsv(55, 65%, 82%)
CMYKcmyk(0%, 5.2%, 64.8%, 17.6%)
CIE-LABlab(79.07, -10.94, 61.63)
CIE-LCHlch(79.07, 62.60, 100.06°)
OKLaboklab(81.58% -0.0355 0.1393)
OKLCHoklch(81.58% 0.144 104.3)
XYZxyz(48.2396, 55.0447, 14.5609)
Luminance0.5504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C74A #4A55D2
analogous
#D2834A #D2C74A #99D24A
triadic
#D2C74A #4AD2C7 #C74AD2
tetradic
#D2C74A #4AD283 #4A55D2 #D24A99
square
#D2C74A #4AD283 #4A55D2 #D24A99
split-complementary
#D2C74A #4A99D2 #834AD2
monochromatic
#817A20 #B2A82C #D2C74A #DED67B #EAE5AC

Accessibility & contrast

On white

1.75
#D2C74A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.01
#D2C74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C74A
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C74A#FFFFFF#000000##000000
##D2C74A1.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C03A
Deuteranopia (green-blind)
#DCC651
Tritanopia (blue-blind)
#E1BAAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c74a;
/* rgb */ color: rgb(210, 199, 74);
/* oklch */ color: oklch(81.6% 0.144 104.3);
Tailwind
colors: {
  custom: {
    50: '#e3d783',
    500: '#d2c74a',
    950: '#000000',
  },
}
SCSS
$custom: #d2c74a;
$custom-light: #e3d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c74a",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 74
  },
  "hsl": {
    "h": 55.147,
    "s": 60.177,
    "l": 55.686
  },
  "oklch": {
    "l": 0.81578,
    "c": 0.14376,
    "h": 104.3
  },
  "luminance": 0.55043
}

Semantic roles & 50–950 ramp

primary
#D2C74A
secondary
#383E89
accent
#51E344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C74A

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

Preview Lab → · Contrast checker → · Palette generator →

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