#D1B538#D1B538

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

Color values

HEX#D1B538
RGBrgb(209, 181, 56)
HSLhsl(49, 62%, 52%)
HSVhsv(49, 73%, 82%)
CMYKcmyk(0%, 13.4%, 73.2%, 18%)
CIE-LABlab(74.12, -3.03, 63.67)
CIE-LCHlch(74.12, 63.74, 92.72°)
OKLaboklab(77.59% -0.0149 0.1406)
OKLCHoklch(77.59% 0.141 96)
XYZxyz(43.5344, 46.8909, 10.4984)
Luminance0.4689 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1B538 #3854D1
analogous
#D16938 #D1B538 #A0D138
triadic
#D1B538 #38D1B5 #B538D1
tetradic
#D1B538 #38D169 #3854D1 #D138A0
square
#D1B538 #38D169 #3854D1 #D138A0
split-complementary
#D1B538 #38A0D1 #6938D1
monochromatic
#74641B #A68E26 #D1B538 #DCC76A #E8DA9B

Accessibility & contrast

On white

2.02
#D1B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.38
#D1B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1B538
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1B538#FFFFFF#000000##000000
##D1B5381.002.0210.3810.38
#FFFFFF2.021.0021.0021.00
#00000010.3821.001.001.00
##00000010.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B123
Deuteranopia (green-blind)
#CFBA40
Tritanopia (blue-blind)
#E2A79C
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d1b538;
/* rgb */ color: rgb(209, 181, 56);
/* oklch */ color: oklch(77.6% 0.141 96.0);
Tailwind
colors: {
  custom: {
    50: '#e3ca77',
    500: '#d1b538',
    950: '#000000',
  },
}
SCSS
$custom: #d1b538;
$custom-light: #e3ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#d1b538",
  "rgb": {
    "r": 209,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 49.02,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.77592,
    "c": 0.14135,
    "h": 96
  },
  "luminance": 0.46889
}

Semantic roles & 50–950 ramp

primary
#D1B538
secondary
#919DD4
accent
#60E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D1B538

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

Preview Lab → · Contrast checker → · Palette generator →

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