#B7B151#B7B151

#B7B151 is a light, moderate yellow. Relative luminance 0.421; OKLCH L 74.6% C 0.118 H 105.6°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#B7B151
RGBrgb(183, 177, 81)
HSLhsl(56, 41%, 52%)
HSVhsv(56, 56%, 72%)
CMYKcmyk(0%, 3.3%, 55.7%, 28.2%)
CIE-LABlab(70.94, -10.55, 49.02)
CIE-LCHlch(70.94, 50.14, 102.14°)
OKLaboklab(74.59% -0.0319 0.1141)
OKLCHoklch(74.59% 0.118 105.6)
XYZxyz(36.7369, 42.1068, 13.9752)
Luminance0.4211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B151 #5157B7
analogous
#B77E51 #B7B151 #8AB751
triadic
#B7B151 #51B7B1 #B151B7
tetradic
#B7B151 #51B77E #5157B7 #B7518A
square
#B7B151 #51B77E #5157B7 #B7518A
split-complementary
#B7B151 #518AB7 #7E51B7
monochromatic
#646129 #8F8A3B #B7B151 #C9C47C #DBD8A8

Accessibility & contrast

On white

2.23
#B7B151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#B7B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B151
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B151#FFFFFF#000000##000000
##B7B1511.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAB47
Deuteranopia (green-blind)
#C1B056
Tritanopia (blue-blind)
#C3A79C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b151;
/* rgb */ color: rgb(183, 177, 81);
/* oklch */ color: oklch(74.6% 0.118 105.6);
Tailwind
colors: {
  custom: {
    50: '#cfc885',
    500: '#b7b151',
    950: '#000000',
  },
}
SCSS
$custom: #b7b151;
$custom-light: #cfc885;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b151",
  "rgb": {
    "r": 183,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 56.471,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.74587,
    "c": 0.11847,
    "h": 105.6
  },
  "luminance": 0.42106
}

Semantic roles & 50–950 ramp

primary
#B7B151
secondary
#9C9EC8
accent
#5ED157
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #B7B151

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

Preview Lab → · Contrast checker → · Palette generator →

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