#D7C24E#D7C24E

#D7C24E is a light, vivid yellow. Relative luminance 0.536; OKLCH L 81.0% C 0.136 H 99.0°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#D7C24E
RGBrgb(215, 194, 78)
HSLhsl(51, 63%, 57%)
HSVhsv(51, 64%, 84%)
CMYKcmyk(0%, 9.8%, 63.7%, 15.7%)
CIE-LABlab(78.22, -6.03, 59.19)
CIE-LCHlch(78.22, 59.49, 95.82°)
OKLaboklab(81.02% -0.0213 0.1346)
OKLCHoklch(81.02% 0.136 99)
XYZxyz(48.6933, 53.5829, 14.9839)
Luminance0.5358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C24E #4E63D7
analogous
#D77E4E #D7C24E #A7D74E
triadic
#D7C24E #4ED7C2 #C24ED7
tetradic
#D7C24E #4ED77E #4E63D7 #D74EA7
square
#D7C24E #4ED77E #4E63D7 #D74EA7
split-complementary
#D7C24E #4EA7D7 #7E4ED7
monochromatic
#8B7B1F #BDA72B #D7C24E #E2D380 #EEE4B2

Accessibility & contrast

On white

1.79
#D7C24E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#D7C24E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C24E
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C24E#FFFFFF#000000##000000
##D7C24E1.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD40
Deuteranopia (green-blind)
#D9C554
Tritanopia (blue-blind)
#E7B5A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c24e;
/* rgb */ color: rgb(215, 194, 78);
/* oklch */ color: oklch(81.0% 0.136 99.0);
Tailwind
colors: {
  custom: {
    50: '#e7d485',
    500: '#d7c24e',
    950: '#000000',
  },
}
SCSS
$custom: #d7c24e;
$custom-light: #e7d485;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c24e",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 78
  },
  "hsl": {
    "h": 50.803,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81018,
    "c": 0.1363,
    "h": 99
  },
  "luminance": 0.53581
}

Semantic roles & 50–950 ramp

primary
#D7C24E
secondary
#384691
accent
#5BE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C24E

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

Preview Lab → · Contrast checker → · Palette generator →

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