#B2AB42#B2AB42

#B2AB42 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.126 H 105.5°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#B2AB42
RGBrgb(178, 171, 66)
HSLhsl(56, 46%, 48%)
HSVhsv(56, 63%, 70%)
CMYKcmyk(0%, 3.9%, 62.9%, 30.2%)
CIE-LABlab(68.74, -10.65, 53.26)
CIE-LCHlch(68.74, 54.32, 101.30°)
OKLaboklab(72.69% -0.0336 0.1213)
OKLCHoklch(72.69% 0.126 105.5)
XYZxyz(33.9076, 38.9853, 10.8920)
Luminance0.3898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB42 #4249B2
analogous
#B27342 #B2AB42 #81B242
triadic
#B2AB42 #42B2AB #AB42B2
tetradic
#B2AB42 #42B273 #4249B2 #B24281
square
#B2AB42 #42B273 #4249B2 #B24281
split-complementary
#B2AB42 #4281B2 #7342B2
monochromatic
#595521 #858031 #B2AB42 #C8C26A #D8D496

Accessibility & contrast

On white

2.39
#B2AB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#B2AB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB42
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB42#FFFFFF#000000##000000
##B2AB421.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A535
Deuteranopia (green-blind)
#BCAA48
Tritanopia (blue-blind)
#BFA095
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b2ab42;
/* rgb */ color: rgb(178, 171, 66);
/* oklch */ color: oklch(72.7% 0.126 105.5);
Tailwind
colors: {
  custom: {
    50: '#ccc37b',
    500: '#b2ab42',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab42;
$custom-light: #ccc37b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab42",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 66
  },
  "hsl": {
    "h": 56.25,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.72686,
    "c": 0.12585,
    "h": 105.5
  },
  "luminance": 0.38984
}

Semantic roles & 50–950 ramp

primary
#B2AB42
secondary
#8C8FC4
accent
#5AD652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #B2AB42

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

Preview Lab → · Contrast checker → · Palette generator →

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