#D2B842#D2B842

#D2B842 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 78.4% C 0.137 H 96.6°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#D2B842
RGBrgb(210, 184, 66)
HSLhsl(49, 62%, 54%)
HSVhsv(49, 69%, 82%)
CMYKcmyk(0%, 12.4%, 68.6%, 17.6%)
CIE-LABlab(75.06, -3.67, 60.75)
CIE-LCHlch(75.06, 60.86, 93.46°)
OKLaboklab(78.38% -0.0157 0.1362)
OKLCHoklch(78.38% 0.137 96.6)
XYZxyz(44.7043, 48.3782, 12.1364)
Luminance0.4838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B842 #425CD2
analogous
#D27042 #D2B842 #A4D242
triadic
#D2B842 #42D2B8 #B842D2
tetradic
#D2B842 #42D270 #425CD2 #D242A4
square
#D2B842 #42D270 #425CD2 #D242A4
split-complementary
#D2B842 #42A4D2 #7042D2
monochromatic
#7C6B1E #AD9629 #D2B842 #DECB73 #EADDA5

Accessibility & contrast

On white

1.97
#D2B842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.68
#D2B842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B842
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B842#FFFFFF#000000##000000
##D2B8421.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB432
Deuteranopia (green-blind)
#D1BC49
Tritanopia (blue-blind)
#E2AAA0
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d2b842;
/* rgb */ color: rgb(210, 184, 66);
/* oklch */ color: oklch(78.4% 0.137 96.6);
Tailwind
colors: {
  custom: {
    50: '#e3cd7d',
    500: '#d2b842',
    950: '#000000',
  },
}
SCSS
$custom: #d2b842;
$custom-light: #e3cd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b842",
  "rgb": {
    "r": 210,
    "g": 184,
    "b": 66
  },
  "hsl": {
    "h": 49.167,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.78382,
    "c": 0.13707,
    "h": 96.6
  },
  "luminance": 0.48376
}

Semantic roles & 50–950 ramp

primary
#D2B842
secondary
#99A4D7
accent
#60E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B842

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

Preview Lab → · Contrast checker → · Palette generator →

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