#D7B342#D7B342

#D7B342 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.8% C 0.135 H 91.0°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#D7B342
RGBrgb(215, 179, 66)
HSLhsl(46, 65%, 55%)
HSVhsv(46, 69%, 84%)
CMYKcmyk(0%, 16.7%, 69.3%, 15.7%)
CIE-LABlab(74.24, 1.09, 60.07)
CIE-LCHlch(74.24, 60.08, 88.96°)
OKLaboklab(77.84% -0.0023 0.1345)
OKLCHoklch(77.84% 0.135 91)
XYZxyz(45.1302, 47.0833, 11.8641)
Luminance0.4708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7B342 #4266D7
analogous
#D76842 #D7B342 #B1D742
triadic
#D7B342 #42D7B3 #B342D7
tetradic
#D7B342 #42D768 #4266D7 #D742B1
square
#D7B342 #42D768 #4266D7 #D742B1
split-complementary
#D7B342 #42B1D7 #6842D7
monochromatic
#836A1C #B59326 #D7B342 #E2C775 #ECDCA7

Accessibility & contrast

On white

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

On black

10.42
#D7B342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7B342
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7B342#FFFFFF#000000##000000
##D7B3421.002.0210.4210.42
#FFFFFF2.021.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B133
Deuteranopia (green-blind)
#CFBB48
Tritanopia (blue-blind)
#E8A59C
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d7b342;
/* rgb */ color: rgb(215, 179, 66);
/* oklch */ color: oklch(77.8% 0.135 91.0);
Tailwind
colors: {
  custom: {
    50: '#e7c97c',
    500: '#d7b342',
    950: '#000000',
  },
}
SCSS
$custom: #d7b342;
$custom-light: #e7c97c;
$custom-dark: #000000;
JSON
{
  "hex": "#d7b342",
  "rgb": {
    "r": 215,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 45.503,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.77844,
    "c": 0.13456,
    "h": 91
  },
  "luminance": 0.47081
}

Semantic roles & 50–950 ramp

primary
#D7B342
secondary
#9BAADA
accent
#68E840
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #D7B342

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

Preview Lab → · Contrast checker → · Palette generator →

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