#D2B45A#D2B45A

#D2B45A is a light, moderate yellow. Relative luminance 0.471; OKLCH L 77.8% C 0.115 H 91.1°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#D2B45A
RGBrgb(210, 180, 90)
HSLhsl(45, 57%, 59%)
HSVhsv(45, 57%, 82%)
CMYKcmyk(0%, 14.3%, 57.1%, 17.6%)
CIE-LABlab(74.24, -0.02, 49.18)
CIE-LCHlch(74.24, 49.18, 90.02°)
OKLaboklab(77.81% -0.0023 0.1149)
OKLCHoklch(77.81% 0.115 91.1)
XYZxyz(44.7470, 47.0846, 16.4022)
Luminance0.4708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B45A #5A78D2
analogous
#D2785A #D2B45A #B4D25A
triadic
#D2B45A #5AD2B4 #B45AD2
tetradic
#D2B45A #5AD278 #5A78D2 #D25AB4
square
#D2B45A #5AD278 #5A78D2 #D25AB4
split-complementary
#D2B45A #5AB4D2 #785AD2
monochromatic
#8C7226 #BC9A33 #D2B45A #DFCA8A #ECE0BA

Accessibility & contrast

On white

2.02
#D2B45A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.42
#D2B45A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B45A
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B45A#FFFFFF#000000##000000
##D2B45A1.002.0210.4210.42
#FFFFFF2.021.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B251
Deuteranopia (green-blind)
#CCBA5E
Tritanopia (blue-blind)
#E1A8A0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d2b45a;
/* rgb */ color: rgb(210, 180, 90);
/* oklch */ color: oklch(77.8% 0.115 91.1);
Tailwind
colors: {
  custom: {
    50: '#e2ca8b',
    500: '#d2b45a',
    950: '#000000',
  },
}
SCSS
$custom: #d2b45a;
$custom-light: #e2ca8b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b45a",
  "rgb": {
    "r": 210,
    "g": 180,
    "b": 90
  },
  "hsl": {
    "h": 45,
    "s": 57.143,
    "l": 58.824
  },
  "oklch": {
    "l": 0.77805,
    "c": 0.11491,
    "h": 91.1
  },
  "luminance": 0.47082
}

Semantic roles & 50–950 ramp

primary
#D2B45A
secondary
#ACB8DC
accent
#6EE047
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130C
muted
#84827D

Preview Lab

Preview with #D2B45A

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

Preview Lab → · Contrast checker → · Palette generator →

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