#D4C138#D4C138

#D4C138 is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.4% C 0.150 H 101.1°. Best body text is #000000 at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#D4C138
RGBrgb(212, 193, 56)
HSLhsl(53, 64%, 53%)
HSVhsv(53, 74%, 83%)
CMYKcmyk(0%, 9%, 73.6%, 16.9%)
CIE-LABlab(77.53, -7.95, 67.04)
CIE-LCHlch(77.53, 67.51, 96.77°)
OKLaboklab(80.36% -0.029 0.1476)
OKLCHoklch(80.36% 0.15 101.1)
XYZxyz(46.9373, 52.4247, 11.3872)
Luminance0.5242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C138 #384BD4
analogous
#D47338 #D4C138 #99D438
triadic
#D4C138 #38D4C1 #C138D4
tetradic
#D4C138 #38D473 #384BD4 #D43899
square
#D4C138 #38D473 #384BD4 #D43899
split-complementary
#D4C138 #3899D4 #7338D4
monochromatic
#786C1A #AA9A25 #D4C138 #DFD16A #EAE09D

Accessibility & contrast

On white

1.83
#D4C138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.48
#D4C138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C138
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C138#FFFFFF#000000##000000
##D4C1381.001.8311.4811.48
#FFFFFF1.831.0021.0021.00
#00000011.4821.001.001.00
##00000011.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB1F
Deuteranopia (green-blind)
#D9C341
Tritanopia (blue-blind)
#E4B3A6
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d4c138;
/* rgb */ color: rgb(212, 193, 56);
/* oklch */ color: oklch(80.4% 0.150 101.1);
Tailwind
colors: {
  custom: {
    50: '#e5d378',
    500: '#d4c138',
    950: '#000000',
  },
}
SCSS
$custom: #d4c138;
$custom-light: #e5d378;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c138",
  "rgb": {
    "r": 212,
    "g": 193,
    "b": 56
  },
  "hsl": {
    "h": 52.692,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.80363,
    "c": 0.15042,
    "h": 101.1
  },
  "luminance": 0.52423
}

Semantic roles & 50–950 ramp

primary
#D4C138
secondary
#303A80
accent
#55E740
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C138

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

Preview Lab → · Contrast checker → · Palette generator →

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