#D5B140#D5B140

#D5B140 is a light, vivid yellow. Relative luminance 0.460; OKLCH L 77.2% C 0.134 H 90.9°. Best body text is #000000 at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#D5B140
RGBrgb(213, 177, 64)
HSLhsl(46, 64%, 54%)
HSVhsv(46, 70%, 84%)
CMYKcmyk(0%, 16.9%, 70%, 16.5%)
CIE-LABlab(73.52, 1.19, 60.09)
CIE-LCHlch(73.52, 60.10, 88.87°)
OKLaboklab(77.22% -0.0022 0.1343)
OKLCHoklch(77.22% 0.134 90.9)
XYZxyz(44.0905, 45.9632, 11.3990)
Luminance0.4596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B140 #4064D5
analogous
#D56740 #D5B140 #AFD540
triadic
#D5B140 #40D5B1 #B140D5
tetradic
#D5B140 #40D567 #4064D5 #D540AF
square
#D5B140 #40D567 #4064D5 #D540AF
split-complementary
#D5B140 #40AFD5 #6740D5
monochromatic
#7F671C #B19027 #D5B140 #E0C572 #EBDAA4

Accessibility & contrast

On white

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

On black

10.19
#D5B140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B140
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B140#FFFFFF#000000##000000
##D5B1401.002.0610.1910.19
#FFFFFF2.061.0021.0021.00
#00000010.1921.001.001.00
##00000010.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF31
Deuteranopia (green-blind)
#CDB946
Tritanopia (blue-blind)
#E6A39A
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d5b140;
/* rgb */ color: rgb(213, 177, 64);
/* oklch */ color: oklch(77.2% 0.134 90.9);
Tailwind
colors: {
  custom: {
    50: '#e6c87b',
    500: '#d5b140',
    950: '#000000',
  },
}
SCSS
$custom: #d5b140;
$custom-light: #e6c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b140",
  "rgb": {
    "r": 213,
    "g": 177,
    "b": 64
  },
  "hsl": {
    "h": 45.503,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.77225,
    "c": 0.13433,
    "h": 90.9
  },
  "luminance": 0.45961
}

Semantic roles & 50–950 ramp

primary
#D5B140
secondary
#99A8D8
accent
#69E741
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D5B140

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

Preview Lab → · Contrast checker → · Palette generator →

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