#B2A151#B2A151

#B2A151 is a light, moderate yellow. Relative luminance 0.355; OKLCH L 70.7% C 0.103 H 97.6°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#B2A151
RGBrgb(178, 161, 81)
HSLhsl(49, 39%, 51%)
HSVhsv(49, 54%, 70%)
CMYKcmyk(0%, 9.6%, 54.5%, 30.2%)
CIE-LABlab(66.17, -4.24, 43.38)
CIE-LCHlch(66.17, 43.59, 95.58°)
OKLaboklab(70.7% -0.0135 0.102)
OKLCHoklch(70.7% 0.103 97.6)
XYZxyz(32.5913, 35.5501, 12.9281)
Luminance0.3555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A151 #5162B2
analogous
#B27151 #B2A151 #92B251
triadic
#B2A151 #51B2A1 #A151B2
tetradic
#B2A151 #51B271 #5162B2 #B25192
square
#B2A151 #51B271 #5162B2 #B25192
split-complementary
#B2A151 #5192B2 #7151B2
monochromatic
#5F552A #897C3D #B2A151 #C5B87B #D8CFA6

Accessibility & contrast

On white

2.59
#B2A151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#B2A151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A151
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A151#FFFFFF#000000##000000
##B2A1511.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D4A
Deuteranopia (green-blind)
#B3A355
Tritanopia (blue-blind)
#BE978F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a151;
/* rgb */ color: rgb(178, 161, 81);
/* oklch */ color: oklch(70.7% 0.103 97.6);
Tailwind
colors: {
  custom: {
    50: '#cbbc84',
    500: '#b2a151',
    950: '#000000',
  },
}
SCSS
$custom: #b2a151;
$custom-light: #cbbc84;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a151",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 81
  },
  "hsl": {
    "h": 49.485,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.70697,
    "c": 0.10289,
    "h": 97.6
  },
  "luminance": 0.35549
}

Semantic roles & 50–950 ramp

primary
#B2A151
secondary
#9AA1C5
accent
#6ECF59
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#14120B
muted
#82817C

Preview Lab

Preview with #B2A151

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

Preview Lab → · Contrast checker → · Palette generator →

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