#D3B840#D3B840

#D3B840 is a light, vivid yellow. Relative luminance 0.485; OKLCH L 78.5% C 0.139 H 96.2°. Best body text is #000000 at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#D3B840
RGBrgb(211, 184, 64)
HSLhsl(49, 63%, 54%)
HSVhsv(49, 70%, 83%)
CMYKcmyk(0%, 12.8%, 69.7%, 17.3%)
CIE-LABlab(75.14, -3.35, 61.67)
CIE-LCHlch(75.14, 61.76, 93.11°)
OKLaboklab(78.46% -0.015 0.1377)
OKLCHoklch(78.46% 0.139 96.2)
XYZxyz(44.9321, 48.5024, 11.8447)
Luminance0.4850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B840 #405BD3
analogous
#D36F40 #D3B840 #A4D340
triadic
#D3B840 #40D3B8 #B840D3
tetradic
#D3B840 #40D36F #405BD3 #D340A4
square
#D3B840 #40D36F #405BD3 #D340A4
split-complementary
#D3B840 #40A4D3 #6F40D3
monochromatic
#7C6A1D #AE9528 #D3B840 #DECA72 #EADDA3

Accessibility & contrast

On white

1.96
#D3B840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.70
#D3B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B840
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B840#FFFFFF#000000##000000
##D3B8401.001.9610.7010.70
#FFFFFF1.961.0021.0021.00
#00000010.7021.001.001.00
##00000010.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB42F
Deuteranopia (green-blind)
#D1BD47
Tritanopia (blue-blind)
#E3AAA0
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d3b840;
/* rgb */ color: rgb(211, 184, 64);
/* oklch */ color: oklch(78.5% 0.139 96.2);
Tailwind
colors: {
  custom: {
    50: '#e4cc7c',
    500: '#d3b840',
    950: '#000000',
  },
}
SCSS
$custom: #d3b840;
$custom-light: #e4cc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b840",
  "rgb": {
    "r": 211,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 48.98,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.7846,
    "c": 0.13854,
    "h": 96.2
  },
  "luminance": 0.485
}

Semantic roles & 50–950 ramp

primary
#D3B840
secondary
#98A4D7
accent
#60E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D3B840

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

Preview Lab → · Contrast checker → · Palette generator →

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