#D3B231#D3B231

#D3B231 is a light, vivid yellow. Relative luminance 0.459; OKLCH L 77.1% C 0.144 H 93.8°. Best body text is #000000 at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#D3B231
RGBrgb(211, 178, 49)
HSLhsl(48, 65%, 51%)
HSVhsv(48, 77%, 83%)
CMYKcmyk(0%, 15.6%, 76.8%, 17.3%)
CIE-LABlab(73.49, -0.88, 65.63)
CIE-LCHlch(73.49, 65.64, 90.77°)
OKLaboklab(77.13% -0.0096 0.1433)
OKLCHoklch(77.13% 0.144 93.8)
XYZxyz(43.3412, 45.9140, 9.4846)
Luminance0.4591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B231 #3152D3
analogous
#D36131 #D3B231 #A3D331
triadic
#D3B231 #31D3B2 #B231D3
tetradic
#D3B231 #31D361 #3152D3 #D331A3
square
#D3B231 #31D361 #3152D3 #D331A3
split-complementary
#D3B231 #31A3D3 #6131D3
monochromatic
#715F18 #A48A23 #D3B231 #DEC563 #E9D896

Accessibility & contrast

On white

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

On black

10.18
#D3B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B231
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B231#FFFFFF#000000##000000
##D3B2311.002.0610.1810.18
#FFFFFF2.061.0021.0021.00
#00000010.1821.001.001.00
##00000010.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF17
Deuteranopia (green-blind)
#CEB939
Tritanopia (blue-blind)
#E4A399
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d3b231;
/* rgb */ color: rgb(211, 178, 49);
/* oklch */ color: oklch(77.1% 0.144 93.8);
Tailwind
colors: {
  custom: {
    50: '#e5c873',
    500: '#d3b231',
    950: '#000000',
  },
}
SCSS
$custom: #d3b231;
$custom-light: #e5c873;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b231",
  "rgb": {
    "r": 211,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 47.778,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.77125,
    "c": 0.14362,
    "h": 93.8
  },
  "luminance": 0.45911
}

Semantic roles & 50–950 ramp

primary
#D3B231
secondary
#8C9BD4
accent
#62E840
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #D3B231

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

Preview Lab → · Contrast checker → · Palette generator →

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