#D4B140#D4B140

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

Color values

HEX#D4B140
RGBrgb(212, 177, 64)
HSLhsl(46, 63%, 54%)
HSVhsv(46, 70%, 83%)
CMYKcmyk(0%, 16.5%, 69.8%, 16.9%)
CIE-LABlab(73.42, 0.76, 59.96)
CIE-LCHlch(73.42, 59.96, 89.28°)
OKLaboklab(77.13% -0.0033 0.1341)
OKLCHoklch(77.13% 0.134 91.4)
XYZxyz(43.8013, 45.8141, 11.3854)
Luminance0.4581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B140 #4063D4
analogous
#D46740 #D4B140 #ADD440
triadic
#D4B140 #40D4B1 #B140D4
tetradic
#D4B140 #40D467 #4063D4 #D440AD
square
#D4B140 #40D467 #4063D4 #D440AD
split-complementary
#D4B140 #40ADD4 #6740D4
monochromatic
#7D661C #AF8F27 #D4B140 #DFC572 #EADAA4

Accessibility & contrast

On white

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

On black

10.16
#D4B140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B140
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B140#FFFFFF#000000##000000
##D4B1401.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4b140;
/* rgb */ color: rgb(212, 177, 64);
/* oklch */ color: oklch(77.1% 0.134 91.4);
Tailwind
colors: {
  custom: {
    50: '#e5c87b',
    500: '#d4b140',
    950: '#000000',
  },
}
SCSS
$custom: #d4b140;
$custom-light: #e5c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b140",
  "rgb": {
    "r": 212,
    "g": 177,
    "b": 64
  },
  "hsl": {
    "h": 45.811,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.77126,
    "c": 0.13411,
    "h": 91.4
  },
  "luminance": 0.45811
}

Semantic roles & 50–950 ramp

primary
#D4B140
secondary
#98A7D7
accent
#68E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B140

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

Preview Lab → · Contrast checker → · Palette generator →

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