#D2B942#D2B942

#D2B942 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 78.6% C 0.138 H 97.1°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#D2B942
RGBrgb(210, 185, 66)
HSLhsl(50, 62%, 54%)
HSVhsv(50, 69%, 82%)
CMYKcmyk(0%, 11.9%, 68.6%, 17.6%)
CIE-LABlab(75.32, -4.19, 61.02)
CIE-LCHlch(75.32, 61.16, 93.93°)
OKLaboklab(78.59% -0.0171 0.1367)
OKLCHoklch(78.59% 0.138 97.1)
XYZxyz(44.9128, 48.7952, 12.2059)
Luminance0.4879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B942 #425BD2
analogous
#D27142 #D2B942 #A3D242
triadic
#D2B942 #42D2B9 #B942D2
tetradic
#D2B942 #42D271 #425BD2 #D242A3
square
#D2B942 #42D271 #425BD2 #D242A3
split-complementary
#D2B942 #42A3D2 #7142D2
monochromatic
#7C6C1E #AD9729 #D2B942 #DECB73 #EADEA5

Accessibility & contrast

On white

1.95
#D2B942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.76
#D2B942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B942
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B942#FFFFFF#000000##000000
##D2B9421.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB532
Deuteranopia (green-blind)
#D2BD49
Tritanopia (blue-blind)
#E2ABA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d2b942;
/* rgb */ color: rgb(210, 185, 66);
/* oklch */ color: oklch(78.6% 0.138 97.1);
Tailwind
colors: {
  custom: {
    50: '#e3cd7d',
    500: '#d2b942',
    950: '#000000',
  },
}
SCSS
$custom: #d2b942;
$custom-light: #e3cd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b942",
  "rgb": {
    "r": 210,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 49.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.78588,
    "c": 0.1378,
    "h": 97.1
  },
  "luminance": 0.48793
}

Semantic roles & 50–950 ramp

primary
#D2B942
secondary
#99A4D7
accent
#5FE543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B942

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

Preview Lab → · Contrast checker → · Palette generator →

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