#D4B642#D4B642

#D4B642 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 78.2% C 0.136 H 94.4°. Best body text is #000000 at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#D4B642
RGBrgb(212, 182, 66)
HSLhsl(48, 63%, 55%)
HSVhsv(48, 69%, 83%)
CMYKcmyk(0%, 14.2%, 68.9%, 16.9%)
CIE-LABlab(74.73, -1.77, 60.47)
CIE-LCHlch(74.73, 60.50, 91.67°)
OKLaboklab(78.16% -0.0103 0.1355)
OKLCHoklch(78.16% 0.136 94.4)
XYZxyz(44.8649, 47.8487, 12.0258)
Luminance0.4785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B642 #4260D4
analogous
#D46D42 #D4B642 #A9D442
triadic
#D4B642 #42D4B6 #B642D4
tetradic
#D4B642 #42D46D #4260D4 #D442A9
square
#D4B642 #42D46D #4260D4 #D442A9
split-complementary
#D4B642 #42A9D4 #6D42D4
monochromatic
#7F6B1D #B19528 #D4B642 #DFC974 #EBDDA6

Accessibility & contrast

On white

1.99
#D4B642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.57
#D4B642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B642
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B642#FFFFFF#000000##000000
##D4B6421.001.9910.5710.57
#FFFFFF1.991.0021.0021.00
#00000010.5721.001.001.00
##00000010.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B332
Deuteranopia (green-blind)
#D0BC48
Tritanopia (blue-blind)
#E5A89E
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #d4b642;
/* rgb */ color: rgb(212, 182, 66);
/* oklch */ color: oklch(78.2% 0.136 94.4);
Tailwind
colors: {
  custom: {
    50: '#e5cb7d',
    500: '#d4b642',
    950: '#000000',
  },
}
SCSS
$custom: #d4b642;
$custom-light: #e5cb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b642",
  "rgb": {
    "r": 212,
    "g": 182,
    "b": 66
  },
  "hsl": {
    "h": 47.671,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.78162,
    "c": 0.1359,
    "h": 94.4
  },
  "luminance": 0.47846
}

Semantic roles & 50–950 ramp

primary
#D4B642
secondary
#9AA7D8
accent
#64E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B642

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

Preview Lab → · Contrast checker → · Palette generator →

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