#D3B138#D3B138

#D3B138 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 77.0% C 0.139 H 92.7°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#D3B138
RGBrgb(211, 177, 56)
HSLhsl(47, 64%, 52%)
HSVhsv(47, 73%, 83%)
CMYKcmyk(0%, 16.1%, 73.5%, 17.3%)
CIE-LABlab(73.27, -0.06, 62.91)
CIE-LCHlch(73.27, 62.91, 90.06°)
OKLaboklab(76.97% -0.0065 0.1389)
OKLCHoklch(76.97% 0.139 92.7)
XYZxyz(43.3023, 45.5812, 10.2579)
Luminance0.4558 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3B138 #385AD3
analogous
#D36438 #D3B138 #A7D338
triadic
#D3B138 #38D3B1 #B138D3
tetradic
#D3B138 #38D364 #385AD3 #D338A7
square
#D3B138 #38D364 #385AD3 #D338A7
split-complementary
#D3B138 #38A7D3 #6438D3
monochromatic
#76621A #A98C25 #D3B138 #DEC56A #E9D89C

Accessibility & contrast

On white

2.08
#D3B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.12
#D3B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3B138
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3B138#FFFFFF#000000##000000
##D3B1381.002.0810.1210.12
#FFFFFF2.081.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d3b138;
/* rgb */ color: rgb(211, 177, 56);
/* oklch */ color: oklch(77.0% 0.139 92.7);
Tailwind
colors: {
  custom: {
    50: '#e5c777',
    500: '#d3b138',
    950: '#000000',
  },
}
SCSS
$custom: #d3b138;
$custom-light: #e5c777;
$custom-dark: #000000;
JSON
{
  "hex": "#d3b138",
  "rgb": {
    "r": 211,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 46.839,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.76967,
    "c": 0.13904,
    "h": 92.7
  },
  "luminance": 0.45579
}

Semantic roles & 50–950 ramp

primary
#D3B138
secondary
#92A0D5
accent
#65E741
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #D3B138

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

Preview Lab → · Contrast checker → · Palette generator →

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