#D5B242#D5B242

#D5B242 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.4% C 0.134 H 91.4°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#D5B242
RGBrgb(213, 178, 66)
HSLhsl(46, 64%, 55%)
HSVhsv(46, 69%, 84%)
CMYKcmyk(0%, 16.4%, 69%, 16.5%)
CIE-LABlab(73.79, 0.76, 59.54)
CIE-LCHlch(73.79, 59.55, 89.27°)
OKLaboklab(77.44% -0.0031 0.1335)
OKLCHoklch(77.44% 0.134 91.4)
XYZxyz(44.3467, 46.3829, 11.7702)
Luminance0.4638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B242 #4265D5
analogous
#D56842 #D5B242 #AFD542
triadic
#D5B242 #42D5B2 #B242D5
tetradic
#D5B242 #42D568 #4265D5 #D542AF
square
#D5B242 #42D568 #4265D5 #D542AF
split-complementary
#D5B242 #42AFD5 #6842D5
monochromatic
#80681C #B29128 #D5B242 #E0C674 #EBDBA6

Accessibility & contrast

On white

2.04
#D5B242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#D5B242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B242
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B242#FFFFFF#000000##000000
##D5B2421.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B033
Deuteranopia (green-blind)
#CEBA48
Tritanopia (blue-blind)
#E6A49B
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d5b242;
/* rgb */ color: rgb(213, 178, 66);
/* oklch */ color: oklch(77.4% 0.134 91.4);
Tailwind
colors: {
  custom: {
    50: '#e6c87c',
    500: '#d5b242',
    950: '#000000',
  },
}
SCSS
$custom: #d5b242;
$custom-light: #e6c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b242",
  "rgb": {
    "r": 213,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 45.714,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.77444,
    "c": 0.13355,
    "h": 91.4
  },
  "luminance": 0.4638
}

Semantic roles & 50–950 ramp

primary
#D5B242
secondary
#9AA9D8
accent
#69E741
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D5B242

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

Preview Lab → · Contrast checker → · Palette generator →

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