#B2AB40#B2AB40

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

Color values

HEX#B2AB40
RGBrgb(178, 171, 64)
HSLhsl(56, 47%, 47%)
HSVhsv(56, 64%, 70%)
CMYKcmyk(0%, 3.9%, 64%, 30.2%)
CIE-LABlab(68.72, -10.78, 54.11)
CIE-LCHlch(68.72, 55.17, 101.26°)
OKLaboklab(72.67% -0.0342 0.1228)
OKLCHoklch(72.67% 0.127 105.6)
XYZxyz(33.8496, 38.9621, 10.5869)
Luminance0.3896 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB40 #4047B2
analogous
#B27240 #B2AB40 #80B240
triadic
#B2AB40 #40B2AB #AB40B2
tetradic
#B2AB40 #40B272 #4047B2 #B24080
square
#B2AB40 #40B272 #4047B2 #B24080
split-complementary
#B2AB40 #4080B2 #7240B2
monochromatic
#585520 #858030 #B2AB40 #C8C267 #D8D494

Accessibility & contrast

On white

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

On black

8.79
#B2AB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB40
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB40#FFFFFF#000000##000000
##B2AB401.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2ab40;
/* rgb */ color: rgb(178, 171, 64);
/* oklch */ color: oklch(72.7% 0.127 105.6);
Tailwind
colors: {
  custom: {
    50: '#ccc37a',
    500: '#b2ab40',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab40;
$custom-light: #ccc37a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab40",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 56.316,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.72667,
    "c": 0.12745,
    "h": 105.6
  },
  "luminance": 0.38961
}

Semantic roles & 50–950 ramp

primary
#B2AB40
secondary
#8A8DC4
accent
#59D751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2AB40

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

Preview Lab → · Contrast checker → · Palette generator →

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