#D2C74D#D2C74D

#D2C74D is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.6% C 0.141 H 104.2°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#D2C74D
RGBrgb(210, 199, 77)
HSLhsl(55, 60%, 56%)
HSVhsv(55, 63%, 82%)
CMYKcmyk(0%, 5.2%, 63.3%, 17.6%)
CIE-LABlab(79.09, -10.76, 60.41)
CIE-LCHlch(79.09, 61.36, 100.09°)
OKLaboklab(81.61% -0.0346 0.1372)
OKLCHoklch(81.61% 0.142 104.2)
XYZxyz(48.3431, 55.0861, 15.1059)
Luminance0.5508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C74D #4D58D2
analogous
#D2854D #D2C74D #9BD24D
triadic
#D2C74D #4DD2C7 #C74DD2
tetradic
#D2C74D #4DD285 #4D58D2 #D24D9B
square
#D2C74D #4DD285 #4D58D2 #D24D9B
split-complementary
#D2C74D #4D9BD2 #854DD2
monochromatic
#837B21 #B4A92E #D2C74D #DED67E #EBE6AF

Accessibility & contrast

On white

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

On black

12.02
#D2C74D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C74D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C74D#FFFFFF#000000##000000
##D2C74D1.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c74d;
/* rgb */ color: rgb(210, 199, 77);
/* oklch */ color: oklch(81.6% 0.141 104.2);
Tailwind
colors: {
  custom: {
    50: '#e3d784',
    500: '#d2c74d',
    950: '#000000',
  },
}
SCSS
$custom: #d2c74d;
$custom-light: #e3d784;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c74d",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 77
  },
  "hsl": {
    "h": 55.038,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81605,
    "c": 0.1415,
    "h": 104.2
  },
  "luminance": 0.55084
}

Semantic roles & 50–950 ramp

primary
#D2C74D
secondary
#39408A
accent
#52E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C74D

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

Preview Lab → · Contrast checker → · Palette generator →

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