#D5C541#D5C541

#D5C541 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.4% C 0.148 H 102.3°. Best body text is #000000 at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#D5C541
RGBrgb(213, 197, 65)
HSLhsl(54, 64%, 55%)
HSVhsv(54, 69%, 84%)
CMYKcmyk(0%, 7.5%, 69.5%, 16.5%)
CIE-LABlab(78.73, -9.15, 64.94)
CIE-LCHlch(78.73, 65.58, 98.02°)
OKLaboklab(81.35% -0.0315 0.1447)
OKLCHoklch(81.35% 0.148 102.3)
XYZxyz(48.3630, 54.4623, 12.9648)
Luminance0.5446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C541 #4151D5
analogous
#D57B41 #D5C541 #9BD541
triadic
#D5C541 #41D5C5 #C541D5
tetradic
#D5C541 #41D57B #4151D5 #D5419B
square
#D5C541 #41D57B #4151D5 #D5419B
split-complementary
#D5C541 #419BD5 #7B41D5
monochromatic
#7F751C #B2A327 #D5C541 #E0D473 #EBE4A5

Accessibility & contrast

On white

1.77
#D5C541 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.89
#D5C541 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C541
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C541#FFFFFF#000000##000000
##D5C5411.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2D
Deuteranopia (green-blind)
#DCC649
Tritanopia (blue-blind)
#E5B7AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d5c541;
/* rgb */ color: rgb(213, 197, 65);
/* oklch */ color: oklch(81.4% 0.148 102.3);
Tailwind
colors: {
  custom: {
    50: '#e6d67d',
    500: '#d5c541',
    950: '#000000',
  },
}
SCSS
$custom: #d5c541;
$custom-light: #e6d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c541",
  "rgb": {
    "r": 213,
    "g": 197,
    "b": 65
  },
  "hsl": {
    "h": 53.514,
    "s": 63.793,
    "l": 54.51
  },
  "oklch": {
    "l": 0.81352,
    "c": 0.14812,
    "h": 102.3
  },
  "luminance": 0.5446
}

Semantic roles & 50–950 ramp

primary
#D5C541
secondary
#343D87
accent
#53E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C541

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

Preview Lab → · Contrast checker → · Palette generator →

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