#D1B838#D1B838

#D1B838 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 78.2% C 0.143 H 97.7°. Best body text is #000000 at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#D1B838
RGBrgb(209, 184, 56)
HSLhsl(50, 62%, 52%)
HSVhsv(50, 73%, 82%)
CMYKcmyk(0%, 12%, 73.2%, 18%)
CIE-LABlab(74.90, -4.59, 64.42)
CIE-LCHlch(74.90, 64.59, 94.08°)
OKLaboklab(78.21% -0.0193 0.1422)
OKLCHoklch(78.21% 0.143 97.7)
XYZxyz(44.1510, 48.1241, 10.7039)
Luminance0.4812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1B838 #3851D1
analogous
#D16C38 #D1B838 #9ED138
triadic
#D1B838 #38D1B8 #B838D1
tetradic
#D1B838 #38D16C #3851D1 #D1389E
square
#D1B838 #38D16C #3851D1 #D1389E
split-complementary
#D1B838 #389ED1 #6C38D1
monochromatic
#74651B #A69126 #D1B838 #DCCA6A #E8DB9B

Accessibility & contrast

On white

1.98
#D1B838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.62
#D1B838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1B838
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1B838#FFFFFF#000000##000000
##D1B8381.001.9810.6210.62
#FFFFFF1.981.0021.0021.00
#00000010.6221.001.001.00
##00000010.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB422
Deuteranopia (green-blind)
#D1BC40
Tritanopia (blue-blind)
#E1AA9F
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #d1b838;
/* rgb */ color: rgb(209, 184, 56);
/* oklch */ color: oklch(78.2% 0.143 97.7);
Tailwind
colors: {
  custom: {
    50: '#e3cc77',
    500: '#d1b838',
    950: '#000000',
  },
}
SCSS
$custom: #d1b838;
$custom-light: #e3cc77;
$custom-dark: #000000;
JSON
{
  "hex": "#d1b838",
  "rgb": {
    "r": 209,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 50.196,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.78212,
    "c": 0.14349,
    "h": 97.7
  },
  "luminance": 0.48122
}

Semantic roles & 50–950 ramp

primary
#D1B838
secondary
#919CD4
accent
#5DE642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D1B838

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

Preview Lab → · Contrast checker → · Palette generator →

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