#B2B151#B2B151

#B2B151 is a light, moderate yellow. Relative luminance 0.415; OKLCH L 74.2% C 0.119 H 108.4°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#B2B151
RGBrgb(178, 177, 81)
HSLhsl(59, 39%, 51%)
HSVhsv(59, 54%, 70%)
CMYKcmyk(0%, 0.6%, 54.5%, 30.2%)
CIE-LABlab(70.53, -12.65, 48.43)
CIE-LCHlch(70.53, 50.06, 104.64°)
OKLaboklab(74.16% -0.0376 0.1129)
OKLCHoklch(74.16% 0.119 108.4)
XYZxyz(35.5684, 41.5043, 13.9205)
Luminance0.4150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B151 #5152B2
analogous
#B28051 #B2B151 #82B251
triadic
#B2B151 #51B2B1 #B151B2
tetradic
#B2B151 #51B280 #5152B2 #B25182
square
#B2B151 #51B280 #5152B2 #B25182
split-complementary
#B2B151 #5182B2 #8051B2
monochromatic
#5F5E2A #89883D #B2B151 #C5C47B #D8D7A6

Accessibility & contrast

On white

2.26
#B2B151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#B2B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B151
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B151#FFFFFF#000000##000000
##B2B1511.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAB47
Deuteranopia (green-blind)
#BFAE56
Tritanopia (blue-blind)
#BDA79C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b2b151;
/* rgb */ color: rgb(178, 177, 81);
/* oklch */ color: oklch(74.2% 0.119 108.4);
Tailwind
colors: {
  custom: {
    50: '#cbc885',
    500: '#b2b151',
    950: '#000000',
  },
}
SCSS
$custom: #b2b151;
$custom-light: #cbc885;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b151",
  "rgb": {
    "r": 178,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 59.381,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.74155,
    "c": 0.11903,
    "h": 108.4
  },
  "luminance": 0.41503
}

Semantic roles & 50–950 ramp

primary
#B2B151
secondary
#9A9AC5
accent
#5ACF59
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#14130B
muted
#82827C

Preview Lab

Preview with #B2B151

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

Preview Lab → · Contrast checker → · Palette generator →

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