#D4B142#D4B142

#D4B142 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 77.1% C 0.133 H 91.2°. Best body text is #000000 at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#D4B142
RGBrgb(212, 177, 66)
HSLhsl(46, 63%, 55%)
HSVhsv(46, 69%, 83%)
CMYKcmyk(0%, 16.5%, 68.9%, 16.9%)
CIE-LABlab(73.44, 0.86, 59.15)
CIE-LCHlch(73.44, 59.16, 89.17°)
OKLaboklab(77.14% -0.0028 0.1327)
OKLCHoklch(77.14% 0.133 91.2)
XYZxyz(43.8592, 45.8372, 11.6905)
Luminance0.4583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B142 #4265D4
analogous
#D46842 #D4B142 #AED442
triadic
#D4B142 #42D4B1 #B142D4
tetradic
#D4B142 #42D468 #4265D4 #D442AE
square
#D4B142 #42D468 #4265D4 #D442AE
split-complementary
#D4B142 #42AED4 #6842D4
monochromatic
#7F671D #B19028 #D4B142 #DFC674 #EBDAA6

Accessibility & contrast

On white

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

On black

10.17
#D4B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B142
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B142#FFFFFF#000000##000000
##D4B1421.002.0710.1710.17
#FFFFFF2.071.0021.0021.00
#00000010.1721.001.001.00
##00000010.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF33
Deuteranopia (green-blind)
#CDB947
Tritanopia (blue-blind)
#E5A39A
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d4b142;
/* rgb */ color: rgb(212, 177, 66);
/* oklch */ color: oklch(77.1% 0.133 91.2);
Tailwind
colors: {
  custom: {
    50: '#e5c87c',
    500: '#d4b142',
    950: '#000000',
  },
}
SCSS
$custom: #d4b142;
$custom-light: #e5c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b142",
  "rgb": {
    "r": 212,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 45.616,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.77143,
    "c": 0.13274,
    "h": 91.2
  },
  "luminance": 0.45835
}

Semantic roles & 50–950 ramp

primary
#D4B142
secondary
#9AA9D8
accent
#69E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B142

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

Preview Lab → · Contrast checker → · Palette generator →

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