#D5B338#D5B338

#D5B338 is a light, vivid yellow. Relative luminance 0.467; OKLCH L 77.6% C 0.141 H 92.9°. Best body text is #000000 at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#D5B338
RGBrgb(213, 179, 56)
HSLhsl(47, 65%, 53%)
HSVhsv(47, 74%, 84%)
CMYKcmyk(0%, 16%, 73.7%, 16.5%)
CIE-LABlab(73.98, -0.25, 63.67)
CIE-LCHlch(73.98, 63.67, 90.23°)
OKLaboklab(77.57% -0.0072 0.1404)
OKLCHoklch(77.57% 0.141 92.9)
XYZxyz(44.2769, 46.6745, 10.4176)
Luminance0.4667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B338 #385AD5
analogous
#D56438 #D5B338 #A9D538
triadic
#D5B338 #38D5B3 #B338D5
tetradic
#D5B338 #38D564 #385AD5 #D538A9
square
#D5B338 #38D564 #385AD5 #D538A9
split-complementary
#D5B338 #38A9D5 #6438D5
monochromatic
#79641A #AC8E24 #D5B338 #E0C66B #EADA9D

Accessibility & contrast

On white

2.03
#D5B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.33
#D5B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B338
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B338#FFFFFF#000000##000000
##D5B3381.002.0310.3310.33
#FFFFFF2.031.0021.0021.00
#00000010.3321.001.001.00
##00000010.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B024
Deuteranopia (green-blind)
#CFBA3F
Tritanopia (blue-blind)
#E6A49B
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d5b338;
/* rgb */ color: rgb(213, 179, 56);
/* oklch */ color: oklch(77.6% 0.141 92.9);
Tailwind
colors: {
  custom: {
    50: '#e6c977',
    500: '#d5b338',
    950: '#000000',
  },
}
SCSS
$custom: #d5b338;
$custom-light: #e6c977;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b338",
  "rgb": {
    "r": 213,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 47.006,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.7757,
    "c": 0.14058,
    "h": 92.9
  },
  "luminance": 0.46672
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D5B338

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

Preview Lab → · Contrast checker → · Palette generator →

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