#D2C74E#D2C74E

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

Color values

HEX#D2C74E
RGBrgb(210, 199, 78)
HSLhsl(55, 59%, 56%)
HSVhsv(55, 63%, 82%)
CMYKcmyk(0%, 5.2%, 62.9%, 17.6%)
CIE-LABlab(79.10, -10.69, 60.00)
CIE-LCHlch(79.10, 60.95, 100.10°)
OKLaboklab(81.61% -0.0343 0.1365)
OKLCHoklch(81.61% 0.141 104.1)
XYZxyz(48.3787, 55.1003, 15.2933)
Luminance0.5510 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C74E #4E59D2
analogous
#D2854E #D2C74E #9BD24E
triadic
#D2C74E #4ED2C7 #C74ED2
tetradic
#D2C74E #4ED285 #4E59D2 #D24E9B
square
#D2C74E #4ED285 #4E59D2 #D24E9B
split-complementary
#D2C74E #4E9BD2 #854ED2
monochromatic
#847C22 #B5AA2E #D2C74E #DED67F #EBE6B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2C74E#FFFFFF#000000##000000
##D2C74E1.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)
#D8C13F
Deuteranopia (green-blind)
#DBC755
Tritanopia (blue-blind)
#E1BAAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c74e;
/* rgb */ color: rgb(210, 199, 78);
/* oklch */ color: oklch(81.6% 0.141 104.1);
Tailwind
colors: {
  custom: {
    50: '#e3d785',
    500: '#d2c74e',
    950: '#000000',
  },
}
SCSS
$custom: #d2c74e;
$custom-light: #e3d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c74e",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 55,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81614,
    "c": 0.14072,
    "h": 104.1
  },
  "luminance": 0.55099
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C74E

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

Preview Lab → · Contrast checker → · Palette generator →

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