#D7C24B#D7C24B

#D7C24B is a light, vivid yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.139 H 99.2°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#D7C24B
RGBrgb(215, 194, 75)
HSLhsl(51, 64%, 57%)
HSVhsv(51, 65%, 84%)
CMYKcmyk(0%, 9.8%, 65.1%, 15.7%)
CIE-LABlab(78.19, -6.21, 60.43)
CIE-LCHlch(78.19, 60.75, 95.87°)
OKLaboklab(80.99% -0.0222 0.1368)
OKLCHoklch(80.99% 0.139 99.2)
XYZxyz(48.5882, 53.5408, 14.4303)
Luminance0.5354 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C24B #4B60D7
analogous
#D77C4B #D7C24B #A6D74B
triadic
#D7C24B #4BD7C2 #C24BD7
tetradic
#D7C24B #4BD77C #4B60D7 #D74BA6
square
#D7C24B #4BD77C #4B60D7 #D74BA6
split-complementary
#D7C24B #4BA6D7 #7C4BD7
monochromatic
#89791E #BBA52A #D7C24B #E2D37D #EDE4AF

Accessibility & contrast

On white

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

On black

11.71
#D7C24B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C24B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C24B#FFFFFF#000000##000000
##D7C24B1.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d7c24b;
/* rgb */ color: rgb(215, 194, 75);
/* oklch */ color: oklch(81.0% 0.139 99.2);
Tailwind
colors: {
  custom: {
    50: '#e7d483',
    500: '#d7c24b',
    950: '#000000',
  },
}
SCSS
$custom: #d7c24b;
$custom-light: #e7d483;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c24b",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 75
  },
  "hsl": {
    "h": 51,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80991,
    "c": 0.13859,
    "h": 99.2
  },
  "luminance": 0.53539
}

Semantic roles & 50–950 ramp

primary
#D7C24B
secondary
#37448F
accent
#5AE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C24B

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

Preview Lab → · Contrast checker → · Palette generator →

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