#D3B240#D3B240

#D3B240 is a light, vivid yellow. Relative luminance 0.461; OKLCH L 77.2% C 0.135 H 92.6°. Best body text is #000000 at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#D3B240
RGBrgb(211, 178, 64)
HSLhsl(47, 63%, 54%)
HSVhsv(47, 70%, 83%)
CMYKcmyk(0%, 15.6%, 69.7%, 17.3%)
CIE-LABlab(73.59, -0.20, 60.09)
CIE-LCHlch(73.59, 60.09, 90.19°)
OKLaboklab(77.23% -0.006 0.1344)
OKLCHoklch(77.23% 0.135 92.6)
XYZxyz(43.7121, 46.0623, 11.4380)
Luminance0.4606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B240 #4061D3
analogous
#D36940 #D3B240 #AAD340
triadic
#D3B240 #40D3B2 #B240D3
tetradic
#D3B240 #40D369 #4061D3 #D340AA
square
#D3B240 #40D369 #4061D3 #D340AA
split-complementary
#D3B240 #40AAD3 #6940D3
monochromatic
#7C671D #AE9028 #D3B240 #DEC672 #EADAA3

Accessibility & contrast

On white

2.06
#D3B240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.21
#D3B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B240
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B240#FFFFFF#000000##000000
##D3B2401.002.0610.2110.21
#FFFFFF2.061.0021.0021.00
#00000010.2121.001.001.00
##00000010.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF30
Deuteranopia (green-blind)
#CDB946
Tritanopia (blue-blind)
#E4A49B
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d3b240;
/* rgb */ color: rgb(211, 178, 64);
/* oklch */ color: oklch(77.2% 0.135 92.6);
Tailwind
colors: {
  custom: {
    50: '#e4c87b',
    500: '#d3b240',
    950: '#000000',
  },
}
SCSS
$custom: #d3b240;
$custom-light: #e4c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b240",
  "rgb": {
    "r": 211,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 46.531,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.77231,
    "c": 0.13453,
    "h": 92.6
  },
  "luminance": 0.4606
}

Semantic roles & 50–950 ramp

primary
#D3B240
secondary
#98A6D7
accent
#67E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D3B240

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

Preview Lab → · Contrast checker → · Palette generator →

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