#D5C048#D5C048

#D5C048 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.4% C 0.139 H 99.3°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#D5C048
RGBrgb(213, 192, 72)
HSLhsl(51, 63%, 56%)
HSVhsv(51, 66%, 84%)
CMYKcmyk(0%, 9.9%, 66.2%, 16.5%)
CIE-LABlab(77.47, -6.21, 60.87)
CIE-LCHlch(77.47, 61.18, 95.82°)
OKLaboklab(80.37% -0.0224 0.1373)
OKLCHoklch(80.37% 0.139 99.3)
XYZxyz(47.4620, 52.3155, 13.7275)
Luminance0.5231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C048 #485DD5
analogous
#D57948 #D5C048 #A3D548
triadic
#D5C048 #48D5C0 #C048D5
tetradic
#D5C048 #48D579 #485DD5 #D548A3
square
#D5C048 #48D579 #485DD5 #D548A3
split-complementary
#D5C048 #48A3D5 #7948D5
monochromatic
#84751E #B6A12A #D5C048 #E0D17A #ECE2AC

Accessibility & contrast

On white

1.83
#D5C048 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#D5C048 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C048
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C048#FFFFFF#000000##000000
##D5C0481.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB38
Deuteranopia (green-blind)
#D8C34F
Tritanopia (blue-blind)
#E5B3A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d5c048;
/* rgb */ color: rgb(213, 192, 72);
/* oklch */ color: oklch(80.4% 0.139 99.3);
Tailwind
colors: {
  custom: {
    50: '#e5d281',
    500: '#d5c048',
    950: '#000000',
  },
}
SCSS
$custom: #d5c048;
$custom-light: #e5d281;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c048",
  "rgb": {
    "r": 213,
    "g": 192,
    "b": 72
  },
  "hsl": {
    "h": 51.064,
    "s": 62.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.80367,
    "c": 0.13913,
    "h": 99.3
  },
  "luminance": 0.52313
}

Semantic roles & 50–950 ramp

primary
#D5C048
secondary
#36438B
accent
#5AE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D5C048

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

Preview Lab → · Contrast checker → · Palette generator →

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