#D1AB38#D1AB38

#D1AB38 is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.5% C 0.135 H 89.9°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#D1AB38
RGBrgb(209, 171, 56)
HSLhsl(45, 62%, 52%)
HSVhsv(45, 73%, 82%)
CMYKcmyk(0%, 18.2%, 73.2%, 18%)
CIE-LABlab(71.53, 2.24, 61.15)
CIE-LCHlch(71.53, 61.20, 87.90°)
OKLaboklab(75.55% 0.0002 0.1352)
OKLCHoklch(75.55% 0.135 89.9)
XYZxyz(41.5736, 42.9693, 9.8448)
Luminance0.4297 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1AB38 #385ED1
analogous
#D15F38 #D1AB38 #ABD138
triadic
#D1AB38 #38D1AB #AB38D1
tetradic
#D1AB38 #38D15F #385ED1 #D138AB
square
#D1AB38 #38D15F #385ED1 #D138AB
split-complementary
#D1AB38 #38ABD1 #5F38D1
monochromatic
#745E1B #A68626 #D1AB38 #DCC06A #E8D59B

Accessibility & contrast

On white

2.19
#D1AB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#D1AB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1AB38
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1AB38#FFFFFF#000000##000000
##D1AB381.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA926
Deuteranopia (green-blind)
#C8B43E
Tritanopia (blue-blind)
#E29D94
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d1ab38;
/* rgb */ color: rgb(209, 171, 56);
/* oklch */ color: oklch(75.5% 0.135 89.9);
Tailwind
colors: {
  custom: {
    50: '#e3c376',
    500: '#d1ab38',
    950: '#000000',
  },
}
SCSS
$custom: #d1ab38;
$custom-light: #e3c376;
$custom-dark: #000000;
JSON
{
  "hex": "#d1ab38",
  "rgb": {
    "r": 209,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 45.098,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.75549,
    "c": 0.13524,
    "h": 89.9
  },
  "luminance": 0.42967
}

Semantic roles & 50–950 ramp

primary
#D1AB38
secondary
#91A2D4
accent
#6BE642
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #D1AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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