#D3B040#D3B040

#D3B040 is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.8% C 0.133 H 91.3°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#D3B040
RGBrgb(211, 176, 64)
HSLhsl(46, 63%, 54%)
HSVhsv(46, 70%, 83%)
CMYKcmyk(0%, 16.6%, 69.7%, 17.3%)
CIE-LABlab(73.07, 0.85, 59.57)
CIE-LCHlch(73.07, 59.57, 89.18°)
OKLaboklab(76.83% -0.003 0.1333)
OKLCHoklch(76.83% 0.133 91.3)
XYZxyz(43.3170, 45.2723, 11.3063)
Luminance0.4527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B040 #4063D3
analogous
#D36740 #D3B040 #ADD340
triadic
#D3B040 #40D3B0 #B040D3
tetradic
#D3B040 #40D367 #4063D3 #D340AD
square
#D3B040 #40D367 #4063D3 #D340AD
split-complementary
#D3B040 #40ADD3 #6740D3
monochromatic
#7C651D #AE8E28 #D3B040 #DEC572 #EAD9A3

Accessibility & contrast

On white

2.09
#D3B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.05
#D3B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B040
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B040#FFFFFF#000000##000000
##D3B0401.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE31
Deuteranopia (green-blind)
#CCB846
Tritanopia (blue-blind)
#E4A299
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d3b040;
/* rgb */ color: rgb(211, 176, 64);
/* oklch */ color: oklch(76.8% 0.133 91.3);
Tailwind
colors: {
  custom: {
    50: '#e4c77b',
    500: '#d3b040',
    950: '#000000',
  },
}
SCSS
$custom: #d3b040;
$custom-light: #e4c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b040",
  "rgb": {
    "r": 211,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 45.714,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.76825,
    "c": 0.1333,
    "h": 91.3
  },
  "luminance": 0.4527
}

Semantic roles & 50–950 ramp

primary
#D3B040
secondary
#98A7D7
accent
#69E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D3B040

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

Preview Lab → · Contrast checker → · Palette generator →

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