#B2AB27#B2AB27

#B2AB27 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.144 H 106.3°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#B2AB27
RGBrgb(178, 171, 39)
HSLhsl(57, 64%, 43%)
HSVhsv(57, 78%, 70%)
CMYKcmyk(0%, 3.9%, 78.1%, 30.2%)
CIE-LABlab(68.56, -12.04, 63.29)
CIE-LCHlch(68.56, 64.43, 100.77°)
OKLaboklab(72.49% -0.0403 0.1378)
OKLCHoklch(72.49% 0.144 106.3)
XYZxyz(33.2906, 38.7385, 7.6428)
Luminance0.3874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB27 #272EB2
analogous
#B26527 #B2AB27 #74B227
triadic
#B2AB27 #27B2AB #AB27B2
tetradic
#B2AB27 #27B265 #272EB2 #B22774
square
#B2AB27 #27B265 #272EB2 #B22774
split-complementary
#B2AB27 #2774B2 #6527B2
monochromatic
#4E4B11 #807B1C #B2AB27 #D5CE41 #E0DB73

Accessibility & contrast

On white

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

On black

8.75
#B2AB27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB27
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB27#FFFFFF#000000##000000
##B2AB271.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BDAA32
Tritanopia (blue-blind)
#C09F93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2ab27;
/* rgb */ color: rgb(178, 171, 39);
/* oklch */ color: oklch(72.5% 0.144 106.3);
Tailwind
colors: {
  custom: {
    50: '#cdc36d',
    500: '#b2ab27',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab27;
$custom-light: #cdc36d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab27",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 39
  },
  "hsl": {
    "h": 56.978,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72486,
    "c": 0.14356,
    "h": 106.3
  },
  "luminance": 0.38737
}

Semantic roles & 50–950 ramp

primary
#B2AB27
secondary
#6D72C8
accent
#49E741
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B2AB27

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

Preview Lab → · Contrast checker → · Palette generator →

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