#B2AC31#B2AC31

#B2AC31 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.8% C 0.139 H 106.6°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#B2AC31
RGBrgb(178, 172, 49)
HSLhsl(57, 57%, 45%)
HSVhsv(57, 72%, 70%)
CMYKcmyk(0%, 3.4%, 72.5%, 30.2%)
CIE-LABlab(68.89, -12.13, 60.23)
CIE-LCHlch(68.89, 61.44, 101.39°)
OKLaboklab(72.77% -0.0396 0.1332)
OKLCHoklch(72.77% 0.139 106.6)
XYZxyz(33.6683, 39.1930, 8.6966)
Luminance0.3919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AC31 #3137B2
analogous
#B26B31 #B2AC31 #78B231
triadic
#B2AC31 #31B2AC #AC31B2
tetradic
#B2AC31 #31B26B #3137B2 #B23178
square
#B2AC31 #31B26B #3137B2 #B23178
split-complementary
#B2AC31 #3178B2 #6B31B2
monochromatic
#524F17 #827E24 #B2AC31 #CFC951 #DCD881

Accessibility & contrast

On white

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

On black

8.84
#B2AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AC31
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AC31#FFFFFF#000000##000000
##B2AC311.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2ac31;
/* rgb */ color: rgb(178, 172, 49);
/* oklch */ color: oklch(72.8% 0.139 106.6);
Tailwind
colors: {
  custom: {
    50: '#cdc472',
    500: '#b2ac31',
    950: '#000000',
  },
}
SCSS
$custom: #b2ac31;
$custom-light: #cdc472;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ac31",
  "rgb": {
    "r": 178,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 57.209,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72765,
    "c": 0.13893,
    "h": 106.6
  },
  "luminance": 0.39192
}

Semantic roles & 50–950 ramp

primary
#B2AC31
secondary
#797DC5
accent
#4FE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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