#B1AB27#B1AB27

#B1AB27 is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.4% C 0.144 H 106.8°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#B1AB27
RGBrgb(177, 171, 39)
HSLhsl(57, 64%, 42%)
HSVhsv(57, 78%, 69%)
CMYKcmyk(0%, 3.4%, 78%, 30.6%)
CIE-LABlab(68.48, -12.48, 63.19)
CIE-LCHlch(68.48, 64.41, 101.17°)
OKLaboklab(72.4% -0.0414 0.1376)
OKLCHoklch(72.4% 0.144 106.8)
XYZxyz(33.0620, 38.6206, 7.6320)
Luminance0.3862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AB27 #272DB1
analogous
#B16627 #B1AB27 #72B127
triadic
#B1AB27 #27B1AB #AB27B1
tetradic
#B1AB27 #27B166 #272DB1 #B12772
square
#B1AB27 #27B166 #272DB1 #B12772
split-complementary
#B1AB27 #2772B1 #6627B1
monochromatic
#4D4A11 #7F7B1C #B1AB27 #D5CE40 #E0DB72

Accessibility & contrast

On white

2.41
#B1AB27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#B1AB27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1AB27
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1AB27#FFFFFF#000000##000000
##B1AB271.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1ab27;
/* rgb */ color: rgb(177, 171, 39);
/* oklch */ color: oklch(72.4% 0.144 106.8);
Tailwind
colors: {
  custom: {
    50: '#ccc36d',
    500: '#b1ab27',
    950: '#000000',
  },
}
SCSS
$custom: #b1ab27;
$custom-light: #ccc36d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1ab27",
  "rgb": {
    "r": 177,
    "g": 171,
    "b": 39
  },
  "hsl": {
    "h": 57.391,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.72396,
    "c": 0.14372,
    "h": 106.8
  },
  "luminance": 0.38619
}

Semantic roles & 50–950 ramp

primary
#B1AB27
secondary
#6D71C7
accent
#48E741
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B1AB27

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

Preview Lab → · Contrast checker → · Palette generator →

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