#B6AB31#B6AB31

#B6AB31 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.9% C 0.138 H 104.1°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#B6AB31
RGBrgb(182, 171, 49)
HSLhsl(55, 58%, 45%)
HSVhsv(55, 73%, 71%)
CMYKcmyk(0%, 6%, 73.1%, 28.6%)
CIE-LABlab(68.96, -9.87, 60.42)
CIE-LCHlch(68.96, 61.22, 99.27°)
OKLaboklab(72.91% -0.0335 0.1334)
OKLCHoklch(72.91% 0.138 104.1)
XYZxyz(34.4102, 39.2940, 8.6771)
Luminance0.3929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B6AB31 #313CB6
analogous
#B66931 #B6AB31 #7EB631
triadic
#B6AB31 #31B6AB #AB31B6
tetradic
#B6AB31 #31B669 #313CB6 #B6317E
square
#B6AB31 #31B669 #313CB6 #B6317E
split-complementary
#B6AB31 #317EB6 #6931B6
monochromatic
#565017 #867E24 #B6AB31 #D1C653 #DED684

Accessibility & contrast

On white

2.37
#B6AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#B6AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B6AB31
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B6AB31#FFFFFF#000000##000000
##B6AB311.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BEAB3A
Tritanopia (blue-blind)
#C49F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b6ab31;
/* rgb */ color: rgb(182, 171, 49);
/* oklch */ color: oklch(72.9% 0.138 104.1);
Tailwind
colors: {
  custom: {
    50: '#cfc372',
    500: '#b6ab31',
    950: '#000000',
  },
}
SCSS
$custom: #b6ab31;
$custom-light: #cfc372;
$custom-dark: #000000;
JSON
{
  "hex": "#b6ab31",
  "rgb": {
    "r": 182,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 55.038,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72907,
    "c": 0.13755,
    "h": 104.1
  },
  "luminance": 0.39293
}

Semantic roles & 50–950 ramp

primary
#B6AB31
secondary
#7C82C7
accent
#54E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B6AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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