#D5B438#D5B438

#D5B438 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.8% C 0.141 H 93.5°. Best body text is #000000 at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#D5B438
RGBrgb(213, 180, 56)
HSLhsl(47, 65%, 53%)
HSVhsv(47, 74%, 84%)
CMYKcmyk(0%, 15.5%, 73.7%, 16.5%)
CIE-LABlab(74.24, -0.77, 63.91)
CIE-LCHlch(74.24, 63.92, 90.69°)
OKLaboklab(77.77% -0.0087 0.1409)
OKLCHoklch(77.77% 0.141 93.5)
XYZxyz(44.4781, 47.0767, 10.4846)
Luminance0.4707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B438 #3859D5
analogous
#D56638 #D5B438 #A7D538
triadic
#D5B438 #38D5B4 #B438D5
tetradic
#D5B438 #38D566 #3859D5 #D538A7
square
#D5B438 #38D566 #3859D5 #D538A7
split-complementary
#D5B438 #38A7D5 #6638D5
monochromatic
#79651A #AC8F24 #D5B438 #E0C76B #EADA9D

Accessibility & contrast

On white

2.02
#D5B438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.41
#D5B438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B438
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B438#FFFFFF#000000##000000
##D5B4381.002.0210.4110.41
#FFFFFF2.021.0021.0021.00
#00000010.4121.001.001.00
##00000010.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B123
Deuteranopia (green-blind)
#D0BB3F
Tritanopia (blue-blind)
#E6A59C
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d5b438;
/* rgb */ color: rgb(213, 180, 56);
/* oklch */ color: oklch(77.8% 0.141 93.5);
Tailwind
colors: {
  custom: {
    50: '#e6ca77',
    500: '#d5b438',
    950: '#000000',
  },
}
SCSS
$custom: #d5b438;
$custom-light: #e6ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b438",
  "rgb": {
    "r": 213,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 47.389,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.77774,
    "c": 0.1412,
    "h": 93.5
  },
  "luminance": 0.47074
}

Semantic roles & 50–950 ramp

primary
#D5B438
secondary
#92A1D6
accent
#63E840
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D5B438

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

Preview Lab → · Contrast checker → · Palette generator →

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