#B7A151#B7A151

#B7A151 is a light, moderate yellow. Relative luminance 0.362; OKLCH L 71.2% C 0.104 H 94.2°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#B7A151
RGBrgb(183, 161, 81)
HSLhsl(47, 41%, 52%)
HSVhsv(47, 56%, 72%)
CMYKcmyk(0%, 12%, 55.7%, 28.2%)
CIE-LABlab(66.64, -2.09, 44.04)
CIE-LCHlch(66.64, 44.09, 92.72°)
OKLaboklab(71.17% -0.0077 0.1033)
OKLCHoklch(71.17% 0.104 94.2)
XYZxyz(33.7598, 36.1526, 12.9829)
Luminance0.3615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A151 #5167B7
analogous
#B76E51 #B7A151 #9AB751
triadic
#B7A151 #51B7A1 #A151B7
tetradic
#B7A151 #51B76E #5167B7 #B7519A
square
#B7A151 #51B76E #5167B7 #B7519A
split-complementary
#B7A151 #519AB7 #6E51B7
monochromatic
#645729 #8F7D3B #B7A151 #C9B87C #DBD0A8

Accessibility & contrast

On white

2.55
#B7A151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#B7A151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A151
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A151#FFFFFF#000000##000000
##B7A1511.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E4A
Deuteranopia (green-blind)
#B5A554
Tritanopia (blue-blind)
#C4968F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b7a151;
/* rgb */ color: rgb(183, 161, 81);
/* oklch */ color: oklch(71.2% 0.104 94.2);
Tailwind
colors: {
  custom: {
    50: '#cfbc84',
    500: '#b7a151',
    950: '#000000',
  },
}
SCSS
$custom: #b7a151;
$custom-light: #cfbc84;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a151",
  "rgb": {
    "r": 183,
    "g": 161,
    "b": 81
  },
  "hsl": {
    "h": 47.059,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.71171,
    "c": 0.10361,
    "h": 94.2
  },
  "luminance": 0.36151
}

Semantic roles & 50–950 ramp

primary
#B7A151
secondary
#9CA5C8
accent
#71D157
background
#FDFBF8
surface
#FAF6EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B7A151

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

Preview Lab → · Contrast checker → · Palette generator →

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