#B1AC31#B1AC31

#B1AC31 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.139 H 107.1°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#B1AC31
RGBrgb(177, 172, 49)
HSLhsl(58, 57%, 44%)
HSVhsv(58, 72%, 69%)
CMYKcmyk(0%, 2.8%, 72.3%, 30.6%)
CIE-LABlab(68.81, -12.57, 60.12)
CIE-LCHlch(68.81, 61.42, 101.81°)
OKLaboklab(72.68% -0.0408 0.133)
OKLCHoklch(72.68% 0.139 107.1)
XYZxyz(33.4397, 39.0751, 8.6859)
Luminance0.3907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AC31 #3136B1
analogous
#B16C31 #B1AC31 #76B131
triadic
#B1AC31 #31B1AC #AC31B1
tetradic
#B1AC31 #31B16C #3136B1 #B13176
square
#B1AC31 #31B16C #3136B1 #B13176
split-complementary
#B1AC31 #3176B1 #6C31B1
monochromatic
#514F16 #817D24 #B1AC31 #CFCA51 #DCD880

Accessibility & contrast

On white

2.38
#B1AC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#B1AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1AC31
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1AC31#FFFFFF#000000##000000
##B1AC311.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA51B
Deuteranopia (green-blind)
#BDAA3A
Tritanopia (blue-blind)
#BEA194
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b1ac31;
/* rgb */ color: rgb(177, 172, 49);
/* oklch */ color: oklch(72.7% 0.139 107.1);
Tailwind
colors: {
  custom: {
    50: '#ccc472',
    500: '#b1ac31',
    950: '#000000',
  },
}
SCSS
$custom: #b1ac31;
$custom-light: #ccc472;
$custom-dark: #000000;
JSON
{
  "hex": "#b1ac31",
  "rgb": {
    "r": 177,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 57.656,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.72677,
    "c": 0.13907,
    "h": 107.1
  },
  "luminance": 0.39074
}

Semantic roles & 50–950 ramp

primary
#B1AC31
secondary
#797CC5
accent
#4EE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B1AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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