#B7A342#B7A342

#B7A342 is a light, moderate yellow. Relative luminance 0.367; OKLCH L 71.4% C 0.119 H 97.6°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#B7A342
RGBrgb(183, 163, 66)
HSLhsl(50, 47%, 49%)
HSVhsv(50, 64%, 72%)
CMYKcmyk(0%, 10.9%, 63.9%, 28.2%)
CIE-LABlab(67.02, -4.26, 51.54)
CIE-LCHlch(67.02, 51.72, 94.73°)
OKLaboklab(71.43% -0.0157 0.1175)
OKLCHoklch(71.43% 0.119 97.6)
XYZxyz(33.6105, 36.6566, 10.4582)
Luminance0.3665 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A342 #4256B7
analogous
#B76942 #B7A342 #91B742
triadic
#B7A342 #42B7A3 #A342B7
tetradic
#B7A342 #42B769 #4256B7 #B74291
square
#B7A342 #42B769 #4256B7 #B74291
split-complementary
#B7A342 #4291B7 #6942B7
monochromatic
#5D5322 #8A7B32 #B7A342 #CABA6C #DACF99

Accessibility & contrast

On white

2.52
#B7A342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#B7A342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A342
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A342#FFFFFF#000000##000000
##B7A3421.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F37
Deuteranopia (green-blind)
#B8A647
Tritanopia (blue-blind)
#C5988E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b7a342;
/* rgb */ color: rgb(183, 163, 66);
/* oklch */ color: oklch(71.4% 0.119 97.6);
Tailwind
colors: {
  custom: {
    50: '#d0be7b',
    500: '#b7a342',
    950: '#000000',
  },
}
SCSS
$custom: #b7a342;
$custom-light: #d0be7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a342",
  "rgb": {
    "r": 183,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 49.744,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.71425,
    "c": 0.11855,
    "h": 97.6
  },
  "luminance": 0.36655
}

Semantic roles & 50–950 ramp

primary
#B7A342
secondary
#8F98C6
accent
#68D751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B7A342

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

Preview Lab → · Contrast checker → · Palette generator →

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