#B2A158#B2A158

#B2A158 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.8% C 0.096 H 96.6°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#B2A158
RGBrgb(178, 161, 88)
HSLhsl(49, 37%, 52%)
HSVhsv(49, 51%, 70%)
CMYKcmyk(0%, 9.6%, 50.6%, 30.2%)
CIE-LABlab(66.26, -3.62, 39.97)
CIE-LCHlch(66.26, 40.13, 95.17°)
OKLaboklab(70.79% -0.0109 0.0952)
OKLCHoklch(70.79% 0.096 96.6)
XYZxyz(32.8675, 35.6606, 14.3825)
Luminance0.3566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A158 #5869B2
analogous
#B27458 #B2A158 #96B258
triadic
#B2A158 #58B2A1 #A158B2
tetradic
#B2A158 #58B274 #5869B2 #B25896
square
#B2A158 #58B274 #5869B2 #B25896
split-complementary
#B2A158 #5896B2 #7458B2
monochromatic
#62582D #8C7E41 #B2A158 #C5B982 #D9D0AC

Accessibility & contrast

On white

2.58
#B2A158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#B2A158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A158
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A158#FFFFFF#000000##000000
##B2A1581.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9E52
Deuteranopia (green-blind)
#B3A45B
Tritanopia (blue-blind)
#BE9790
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a158;
/* rgb */ color: rgb(178, 161, 88);
/* oklch */ color: oklch(70.8% 0.096 96.6);
Tailwind
colors: {
  custom: {
    50: '#cbbc89',
    500: '#b2a158',
    950: '#000000',
  },
}
SCSS
$custom: #b2a158;
$custom-light: #cbbc89;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a158",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 88
  },
  "hsl": {
    "h": 48.667,
    "s": 36.885,
    "l": 52.157
  },
  "oklch": {
    "l": 0.70792,
    "c": 0.09582,
    "h": 96.6
  },
  "luminance": 0.35659
}

Semantic roles & 50–950 ramp

primary
#B2A158
secondary
#9FA7C7
accent
#70CD5B
background
#FCFBF8
surface
#F9F6F0
border
#D2D0CB
text
#14120B
muted
#82817C

Preview Lab

Preview with #B2A158

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

Preview Lab → · Contrast checker → · Palette generator →

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