#D7C54B#D7C54B

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

Color values

HEX#D7C54B
RGBrgb(215, 197, 75)
HSLhsl(52, 64%, 57%)
HSVhsv(52, 65%, 84%)
CMYKcmyk(0%, 8.4%, 65.1%, 15.7%)
CIE-LABlab(78.98, -7.75, 61.26)
CIE-LCHlch(78.98, 61.75, 97.21°)
OKLaboklab(81.61% -0.0266 0.1386)
OKLCHoklch(81.61% 0.141 100.9)
XYZxyz(49.2626, 54.8897, 14.6551)
Luminance0.5489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C54B #4B5DD7
analogous
#D77F4B #D7C54B #A3D74B
triadic
#D7C54B #4BD7C5 #C54BD7
tetradic
#D7C54B #4BD77F #4B5DD7 #D74BA3
square
#D7C54B #4BD77F #4B5DD7 #D74BA3
split-complementary
#D7C54B #4BA3D7 #7F4BD7
monochromatic
#897B1E #BBA82A #D7C54B #E2D57D #EDE5AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C54B#FFFFFF#000000##000000
##D7C54B1.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)
#D7BF3C
Deuteranopia (green-blind)
#DCC752
Tritanopia (blue-blind)
#E7B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d7c54b;
/* rgb */ color: rgb(215, 197, 75);
/* oklch */ color: oklch(81.6% 0.141 100.9);
Tailwind
colors: {
  custom: {
    50: '#e7d683',
    500: '#d7c54b',
    950: '#000000',
  },
}
SCSS
$custom: #d7c54b;
$custom-light: #e7d683;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c54b",
  "rgb": {
    "r": 215,
    "g": 197,
    "b": 75
  },
  "hsl": {
    "h": 52.286,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81613,
    "c": 0.14108,
    "h": 100.9
  },
  "luminance": 0.54888
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D7C54B

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

Preview Lab → · Contrast checker → · Palette generator →

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