#D3B540#D3B540

#D3B540 is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.8% C 0.136 H 94.4°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#D3B540
RGBrgb(211, 181, 64)
HSLhsl(48, 63%, 54%)
HSVhsv(48, 70%, 83%)
CMYKcmyk(0%, 14.2%, 69.7%, 17.3%)
CIE-LABlab(74.36, -1.78, 60.88)
CIE-LCHlch(74.36, 60.90, 91.67°)
OKLaboklab(77.84% -0.0105 0.1361)
OKLCHoklch(77.84% 0.136 94.4)
XYZxyz(44.3155, 47.2692, 11.6392)
Luminance0.4727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B540 #405ED3
analogous
#D36C40 #D3B540 #A8D340
triadic
#D3B540 #40D3B5 #B540D3
tetradic
#D3B540 #40D36C #405ED3 #D340A8
square
#D3B540 #40D36C #405ED3 #D340A8
split-complementary
#D3B540 #40A8D3 #6C40D3
monochromatic
#7C691D #AE9228 #D3B540 #DEC872 #EADCA3

Accessibility & contrast

On white

2.01
#D3B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#D3B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B540
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B540#FFFFFF#000000##000000
##D3B5401.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B230
Deuteranopia (green-blind)
#CFBB46
Tritanopia (blue-blind)
#E4A79D
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d3b540;
/* rgb */ color: rgb(211, 181, 64);
/* oklch */ color: oklch(77.8% 0.136 94.4);
Tailwind
colors: {
  custom: {
    50: '#e4ca7b',
    500: '#d3b540',
    950: '#000000',
  },
}
SCSS
$custom: #d3b540;
$custom-light: #e4ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b540",
  "rgb": {
    "r": 211,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 47.755,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.77844,
    "c": 0.13646,
    "h": 94.4
  },
  "luminance": 0.47267
}

Semantic roles & 50–950 ramp

primary
#D3B540
secondary
#98A5D7
accent
#64E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D3B540

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

Preview Lab → · Contrast checker → · Palette generator →

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