#D7C54A#D7C54A

#D7C54A is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.6% C 0.142 H 100.9°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#D7C54A
RGBrgb(215, 197, 74)
HSLhsl(52, 64%, 57%)
HSVhsv(52, 66%, 84%)
CMYKcmyk(0%, 8.4%, 65.6%, 15.7%)
CIE-LABlab(78.97, -7.81, 61.66)
CIE-LCHlch(78.97, 62.16, 97.22°)
OKLaboklab(81.6% -0.0269 0.1393)
OKLCHoklch(81.6% 0.142 100.9)
XYZxyz(49.2287, 54.8761, 14.4763)
Luminance0.5487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C54A #4A5CD7
analogous
#D77E4A #D7C54A #A3D74A
triadic
#D7C54A #4AD7C5 #C54AD7
tetradic
#D7C54A #4AD77E #4A5CD7 #D74AA3
square
#D7C54A #4AD77E #4A5CD7 #D74AA3
split-complementary
#D7C54A #4AA3D7 #7E4AD7
monochromatic
#887B1E #BBA829 #D7C54A #E2D57C #EDE5AE

Accessibility & contrast

On white

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

On black

11.97
#D7C54A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C54A
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C54A#FFFFFF#000000##000000
##D7C54A1.001.7511.9711.97
#FFFFFF1.751.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF3A
Deuteranopia (green-blind)
#DCC751
Tritanopia (blue-blind)
#E7B8AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d7c54a;
/* rgb */ color: rgb(215, 197, 74);
/* oklch */ color: oklch(81.6% 0.142 100.9);
Tailwind
colors: {
  custom: {
    50: '#e7d682',
    500: '#d7c54a',
    950: '#000000',
  },
}
SCSS
$custom: #d7c54a;
$custom-light: #e7d682;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c54a",
  "rgb": {
    "r": 215,
    "g": 197,
    "b": 74
  },
  "hsl": {
    "h": 52.34,
    "s": 63.801,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81604,
    "c": 0.14182,
    "h": 100.9
  },
  "luminance": 0.54874
}

Semantic roles & 50–950 ramp

primary
#D7C54A
secondary
#37428F
accent
#56E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C54A

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

Preview Lab → · Contrast checker → · Palette generator →

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