#D4B138#D4B138

#D4B138 is a light, vivid yellow. Relative luminance 0.457; OKLCH L 77.1% C 0.139 H 92.2°. Best body text is #000000 at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#D4B138
RGBrgb(212, 177, 56)
HSLhsl(47, 64%, 53%)
HSVhsv(47, 74%, 83%)
CMYKcmyk(0%, 16.5%, 73.6%, 16.9%)
CIE-LABlab(73.37, 0.37, 63.04)
CIE-LCHlch(73.37, 63.04, 89.66°)
OKLaboklab(77.07% -0.0053 0.1391)
OKLCHoklch(77.07% 0.139 92.2)
XYZxyz(43.5897, 45.7295, 10.2714)
Luminance0.4573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B138 #385BD4
analogous
#D46338 #D4B138 #A9D438
triadic
#D4B138 #38D4B1 #B138D4
tetradic
#D4B138 #38D463 #385BD4 #D438A9
square
#D4B138 #38D463 #385BD4 #D438A9
split-complementary
#D4B138 #38A9D4 #6338D4
monochromatic
#78631A #AA8C25 #D4B138 #DFC56A #EAD89D

Accessibility & contrast

On white

2.07
#D4B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.15
#D4B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B138
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B138#FFFFFF#000000##000000
##D4B1381.002.0710.1510.15
#FFFFFF2.071.0021.0021.00
#00000010.1521.001.001.00
##00000010.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4b138;
/* rgb */ color: rgb(212, 177, 56);
/* oklch */ color: oklch(77.1% 0.139 92.2);
Tailwind
colors: {
  custom: {
    50: '#e5c777',
    500: '#d4b138',
    950: '#000000',
  },
}
SCSS
$custom: #d4b138;
$custom-light: #e5c777;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b138",
  "rgb": {
    "r": 212,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 46.538,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.77065,
    "c": 0.13922,
    "h": 92.2
  },
  "luminance": 0.45727
}

Semantic roles & 50–950 ramp

primary
#D4B138
secondary
#92A1D6
accent
#66E740
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #D4B138

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

Preview Lab → · Contrast checker → · Palette generator →

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