#D5B138#D5B138

#D5B138 is a light, vivid yellow. Relative luminance 0.459; OKLCH L 77.2% C 0.139 H 91.7°. Best body text is #000000 at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#D5B138
RGBrgb(213, 177, 56)
HSLhsl(46, 65%, 53%)
HSVhsv(46, 74%, 84%)
CMYKcmyk(0%, 16.9%, 73.7%, 16.5%)
CIE-LABlab(73.47, 0.80, 63.17)
CIE-LCHlch(73.47, 63.17, 89.27°)
OKLaboklab(77.16% -0.0042 0.1394)
OKLCHoklch(77.16% 0.139 91.7)
XYZxyz(43.8790, 45.8786, 10.2849)
Luminance0.4588 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B138 #385CD5
analogous
#D56238 #D5B138 #AAD538
triadic
#D5B138 #38D5B1 #B138D5
tetradic
#D5B138 #38D562 #385CD5 #D538AA
square
#D5B138 #38D562 #385CD5 #D538AA
split-complementary
#D5B138 #38AAD5 #6238D5
monochromatic
#79631A #AC8D24 #D5B138 #E0C56B #EAD99D

Accessibility & contrast

On white

2.06
#D5B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.18
#D5B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B138
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B138#FFFFFF#000000##000000
##D5B1381.002.0610.1810.18
#FFFFFF2.061.0021.0021.00
#00000010.1821.001.001.00
##00000010.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE24
Deuteranopia (green-blind)
#CDB93F
Tritanopia (blue-blind)
#E6A299
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d5b138;
/* rgb */ color: rgb(213, 177, 56);
/* oklch */ color: oklch(77.2% 0.139 91.7);
Tailwind
colors: {
  custom: {
    50: '#e6c777',
    500: '#d5b138',
    950: '#000000',
  },
}
SCSS
$custom: #d5b138;
$custom-light: #e6c777;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b138",
  "rgb": {
    "r": 213,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 46.242,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.77164,
    "c": 0.13941,
    "h": 91.7
  },
  "luminance": 0.45876
}

Semantic roles & 50–950 ramp

primary
#D5B138
secondary
#92A2D6
accent
#66E840
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171309
muted
#85827B

Preview Lab

Preview with #D5B138

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

Preview Lab → · Contrast checker → · Palette generator →

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