#D2BA52#D2BA52

#D2BA52 is a light, vivid yellow. Relative luminance 0.494; OKLCH L 78.9% C 0.126 H 96.4°. Best body text is #000000 at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#D2BA52
RGBrgb(210, 186, 82)
HSLhsl(49, 59%, 57%)
HSVhsv(49, 61%, 82%)
CMYKcmyk(0%, 11.4%, 61%, 17.6%)
CIE-LABlab(75.72, -3.74, 54.57)
CIE-LCHlch(75.72, 54.70, 93.92°)
OKLaboklab(78.94% -0.014 0.1255)
OKLCHoklch(78.94% 0.126 96.4)
XYZxyz(45.6622, 49.4308, 15.1169)
Luminance0.4943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2BA52 #526AD2
analogous
#D27A52 #D2BA52 #AAD252
triadic
#D2BA52 #52D2BA #BA52D2
tetradic
#D2BA52 #52D27A #526AD2 #D252AA
square
#D2BA52 #52D27A #526AD2 #D252AA
split-complementary
#D2BA52 #52AAD2 #7A52D2
monochromatic
#877423 #B79E30 #D2BA52 #DFCD83 #EBE1B3

Accessibility & contrast

On white

1.93
#D2BA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.89
#D2BA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2BA52
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2BA52#FFFFFF#000000##000000
##D2BA521.001.9310.8910.89
#FFFFFF1.931.0021.0021.00
#00000010.8921.001.001.00
##00000010.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB647
Deuteranopia (green-blind)
#D1BE57
Tritanopia (blue-blind)
#E1ADA3
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d2ba52;
/* rgb */ color: rgb(210, 186, 82);
/* oklch */ color: oklch(78.9% 0.126 96.4);
Tailwind
colors: {
  custom: {
    50: '#e3ce86',
    500: '#d2ba52',
    950: '#000000',
  },
}
SCSS
$custom: #d2ba52;
$custom-light: #e3ce86;
$custom-dark: #000000;
JSON
{
  "hex": "#d2ba52",
  "rgb": {
    "r": 210,
    "g": 186,
    "b": 82
  },
  "hsl": {
    "h": 48.75,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.78944,
    "c": 0.12628,
    "h": 96.4
  },
  "luminance": 0.49429
}

Semantic roles & 50–950 ramp

primary
#D2BA52
secondary
#A6B0DA
accent
#63E246
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D2BA52

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

Preview Lab → · Contrast checker → · Palette generator →

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