#D4B845#D4B845

#D4B845 is a light, vivid yellow. Relative luminance 0.487; OKLCH L 78.6% C 0.135 H 95.3°. Best body text is #000000 at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#D4B845
RGBrgb(212, 184, 69)
HSLhsl(48, 62%, 55%)
HSVhsv(48, 67%, 83%)
CMYKcmyk(0%, 13.2%, 67.5%, 16.9%)
CIE-LABlab(75.27, -2.65, 59.79)
CIE-LCHlch(75.27, 59.85, 92.54°)
OKLaboklab(78.6% -0.0125 0.1346)
OKLCHoklch(78.6% 0.135 95.3)
XYZxyz(45.3682, 48.7101, 12.6414)
Luminance0.4871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B845 #4561D4
analogous
#D47145 #D4B845 #A8D445
triadic
#D4B845 #45D4B8 #B845D4
tetradic
#D4B845 #45D471 #4561D4 #D445A8
square
#D4B845 #45D471 #4561D4 #D445A8
split-complementary
#D4B845 #45A8D4 #7145D4
monochromatic
#816D1E #B39829 #D4B845 #DFCB77 #EBDEA8

Accessibility & contrast

On white

1.96
#D4B845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.74
#D4B845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B845
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B845#FFFFFF#000000##000000
##D4B8451.001.9610.7410.74
#FFFFFF1.961.0021.0021.00
#00000010.7421.001.001.00
##00000010.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB436
Deuteranopia (green-blind)
#D1BD4B
Tritanopia (blue-blind)
#E4AAA0
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d4b845;
/* rgb */ color: rgb(212, 184, 69);
/* oklch */ color: oklch(78.6% 0.135 95.3);
Tailwind
colors: {
  custom: {
    50: '#e5cd7e',
    500: '#d4b845',
    950: '#000000',
  },
}
SCSS
$custom: #d4b845;
$custom-light: #e5cd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b845",
  "rgb": {
    "r": 212,
    "g": 184,
    "b": 69
  },
  "hsl": {
    "h": 48.252,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.78597,
    "c": 0.13516,
    "h": 95.3
  },
  "luminance": 0.48708
}

Semantic roles & 50–950 ramp

primary
#D4B845
secondary
#9CA8D8
accent
#62E642
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B845

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

Preview Lab → · Contrast checker → · Palette generator →

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