#B2AB31#B2AB31

#B2AB31 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.138 H 106.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#B2AB31
RGBrgb(178, 171, 49)
HSLhsl(57, 57%, 45%)
HSVhsv(57, 72%, 70%)
CMYKcmyk(0%, 3.9%, 72.5%, 30.2%)
CIE-LABlab(68.62, -11.61, 59.97)
CIE-LCHlch(68.62, 61.08, 100.96°)
OKLaboklab(72.55% -0.0382 0.1326)
OKLCHoklch(72.55% 0.138 106.1)
XYZxyz(33.4787, 38.8138, 8.6334)
Luminance0.3881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB31 #3138B2
analogous
#B26B31 #B2AB31 #79B231
triadic
#B2AB31 #31B2AB #AB31B2
tetradic
#B2AB31 #31B26B #3138B2 #B23179
square
#B2AB31 #31B26B #3138B2 #B23179
split-complementary
#B2AB31 #3179B2 #6B31B2
monochromatic
#524F17 #827D24 #B2AB31 #CFC851 #DCD781

Accessibility & contrast

On white

2.40
#B2AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#B2AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB31
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB31#FFFFFF#000000##000000
##B2AB311.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BDAA3A
Tritanopia (blue-blind)
#BF9F93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2ab31;
/* rgb */ color: rgb(178, 171, 49);
/* oklch */ color: oklch(72.5% 0.138 106.1);
Tailwind
colors: {
  custom: {
    50: '#cdc372',
    500: '#b2ab31',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab31;
$custom-light: #cdc372;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab31",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 56.744,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72547,
    "c": 0.13799,
    "h": 106.1
  },
  "luminance": 0.38813
}

Semantic roles & 50–950 ramp

primary
#B2AB31
secondary
#797DC5
accent
#50E048
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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