#D2B538#D2B538

#D2B538 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.7% C 0.141 H 95.6°. Best body text is #000000 at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#D2B538
RGBrgb(210, 181, 56)
HSLhsl(49, 63%, 52%)
HSVhsv(49, 73%, 82%)
CMYKcmyk(0%, 13.8%, 73.3%, 17.6%)
CIE-LABlab(74.21, -2.60, 63.79)
CIE-LCHlch(74.21, 63.84, 92.33°)
OKLaboklab(77.69% -0.0137 0.1408)
OKLCHoklch(77.69% 0.141 95.6)
XYZxyz(43.8183, 47.0373, 10.5117)
Luminance0.4703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B538 #3855D2
analogous
#D26838 #D2B538 #A2D238
triadic
#D2B538 #38D2B5 #B538D2
tetradic
#D2B538 #38D268 #3855D2 #D238A2
square
#D2B538 #38D268 #3855D2 #D238A2
split-complementary
#D2B538 #38A2D2 #6838D2
monochromatic
#75641A #A78F26 #D2B538 #DDC86A #E9DA9C

Accessibility & contrast

On white

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

On black

10.41
#D2B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B538
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B538#FFFFFF#000000##000000
##D2B5381.002.0210.4110.41
#FFFFFF2.021.0021.0021.00
#00000010.4121.001.001.00
##00000010.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B123
Deuteranopia (green-blind)
#CFBA40
Tritanopia (blue-blind)
#E3A79C
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d2b538;
/* rgb */ color: rgb(210, 181, 56);
/* oklch */ color: oklch(77.7% 0.141 95.6);
Tailwind
colors: {
  custom: {
    50: '#e4ca77',
    500: '#d2b538',
    950: '#000000',
  },
}
SCSS
$custom: #d2b538;
$custom-light: #e4ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b538",
  "rgb": {
    "r": 210,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 48.701,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.77688,
    "c": 0.14145,
    "h": 95.6
  },
  "luminance": 0.47035
}

Semantic roles & 50–950 ramp

primary
#D2B538
secondary
#919ED5
accent
#61E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D2B538

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

Preview Lab → · Contrast checker → · Palette generator →

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