#D2B142#D2B142

#D2B142 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.9% C 0.132 H 92.2°. Best body text is #000000 at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#D2B142
RGBrgb(210, 177, 66)
HSLhsl(46, 62%, 54%)
HSVhsv(46, 69%, 82%)
CMYKcmyk(0%, 15.7%, 68.6%, 17.6%)
CIE-LABlab(73.25, 0.00, 58.89)
CIE-LCHlch(73.25, 58.89, 90.00°)
OKLaboklab(76.95% -0.0052 0.1322)
OKLCHoklch(76.95% 0.132 92.2)
XYZxyz(43.2861, 45.5417, 11.6637)
Luminance0.4554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B142 #4263D2
analogous
#D26942 #D2B142 #ABD242
triadic
#D2B142 #42D2B1 #B142D2
tetradic
#D2B142 #42D269 #4263D2 #D242AB
square
#D2B142 #42D269 #4263D2 #D242AB
split-complementary
#D2B142 #42ABD2 #6942D2
monochromatic
#7C661E #AD8F29 #D2B142 #DEC573 #EADAA5

Accessibility & contrast

On white

2.08
#D2B142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.11
#D2B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B142
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B142#FFFFFF#000000##000000
##D2B1421.002.0810.1110.11
#FFFFFF2.081.0021.0021.00
#00000010.1121.001.001.00
##00000010.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE33
Deuteranopia (green-blind)
#CCB848
Tritanopia (blue-blind)
#E3A39A
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d2b142;
/* rgb */ color: rgb(210, 177, 66);
/* oklch */ color: oklch(76.9% 0.132 92.2);
Tailwind
colors: {
  custom: {
    50: '#e4c87c',
    500: '#d2b142',
    950: '#000000',
  },
}
SCSS
$custom: #d2b142;
$custom-light: #e4c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b142",
  "rgb": {
    "r": 210,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 46.25,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.76946,
    "c": 0.13233,
    "h": 92.2
  },
  "luminance": 0.45539
}

Semantic roles & 50–950 ramp

primary
#D2B142
secondary
#99A7D7
accent
#68E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B142

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

Preview Lab → · Contrast checker → · Palette generator →

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