#D5B538#D5B538

#D5B538 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 78.0% C 0.142 H 94.1°. Best body text is #000000 at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#D5B538
RGBrgb(213, 181, 56)
HSLhsl(48, 65%, 53%)
HSVhsv(48, 74%, 84%)
CMYKcmyk(0%, 15%, 73.7%, 16.5%)
CIE-LABlab(74.50, -1.30, 64.16)
CIE-LCHlch(74.50, 64.18, 91.16°)
OKLaboklab(77.98% -0.0102 0.1415)
OKLCHoklch(77.98% 0.142 94.1)
XYZxyz(44.6807, 47.4819, 10.5521)
Luminance0.4748 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B538 #3858D5
analogous
#D56738 #D5B538 #A6D538
triadic
#D5B538 #38D5B5 #B538D5
tetradic
#D5B538 #38D567 #3858D5 #D538A6
square
#D5B538 #38D567 #3858D5 #D538A6
split-complementary
#D5B538 #38A6D5 #6738D5
monochromatic
#79661A #AC9024 #D5B538 #E0C86B #EADB9D

Accessibility & contrast

On white

2.00
#D5B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.50
#D5B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B538
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B538#FFFFFF#000000##000000
##D5B5381.002.0010.5010.50
#FFFFFF2.001.0021.0021.00
#00000010.5021.001.001.00
##00000010.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5b538;
/* rgb */ color: rgb(213, 181, 56);
/* oklch */ color: oklch(78.0% 0.142 94.1);
Tailwind
colors: {
  custom: {
    50: '#e6ca77',
    500: '#d5b538',
    950: '#000000',
  },
}
SCSS
$custom: #d5b538;
$custom-light: #e6ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b538",
  "rgb": {
    "r": 213,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 47.771,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.77978,
    "c": 0.14183,
    "h": 94.1
  },
  "luminance": 0.47479
}

Semantic roles & 50–950 ramp

primary
#D5B538
secondary
#92A0D6
accent
#62E840
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D5B538

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

Preview Lab → · Contrast checker → · Palette generator →

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