#D7C54D#D7C54D

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

Color values

HEX#D7C54D
RGBrgb(215, 197, 77)
HSLhsl(52, 63%, 57%)
HSVhsv(52, 64%, 84%)
CMYKcmyk(0%, 8.4%, 64.2%, 15.7%)
CIE-LABlab(78.99, -7.63, 60.44)
CIE-LCHlch(78.99, 60.92, 97.20°)
OKLaboklab(81.63% -0.026 0.1371)
OKLCHoklch(81.63% 0.14 100.7)
XYZxyz(49.3322, 54.9175, 15.0213)
Luminance0.5492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C54D #4D5FD7
analogous
#D7804D #D7C54D #A4D74D
triadic
#D7C54D #4DD7C5 #C54DD7
tetradic
#D7C54D #4DD780 #4D5FD7 #D74DA4
square
#D7C54D #4DD780 #4D5FD7 #D74DA4
split-complementary
#D7C54D #4DA4D7 #804DD7
monochromatic
#8A7C1F #BCA92A #D7C54D #E2D57F #EDE6B1

Accessibility & contrast

On white

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

On black

11.98
#D7C54D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C54D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C54D#FFFFFF#000000##000000
##D7C54D1.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C03E
Deuteranopia (green-blind)
#DCC754
Tritanopia (blue-blind)
#E7B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d7c54d;
/* rgb */ color: rgb(215, 197, 77);
/* oklch */ color: oklch(81.6% 0.140 100.7);
Tailwind
colors: {
  custom: {
    50: '#e7d684',
    500: '#d7c54d',
    950: '#000000',
  },
}
SCSS
$custom: #d7c54d;
$custom-light: #e7d684;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c54d",
  "rgb": {
    "r": 215,
    "g": 197,
    "b": 77
  },
  "hsl": {
    "h": 52.174,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81631,
    "c": 0.13957,
    "h": 100.7
  },
  "luminance": 0.54915
}

Semantic roles & 50–950 ramp

primary
#D7C54D
secondary
#384390
accent
#57E641
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C54D

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

Preview Lab → · Contrast checker → · Palette generator →

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