#B8AB2C#B8AB2C

#B8AB2C is a light, vivid yellow. Relative luminance 0.395; OKLCH L 73.1% C 0.140 H 103.3°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#B8AB2C
RGBrgb(184, 171, 44)
HSLhsl(54, 61%, 45%)
HSVhsv(54, 76%, 72%)
CMYKcmyk(0%, 7.1%, 76.1%, 27.8%)
CIE-LABlab(69.11, -9.21, 62.37)
CIE-LCHlch(69.11, 63.05, 98.40°)
OKLaboklab(73.06% -0.0322 0.1365)
OKLCHoklch(73.06% 0.14 103.3)
XYZxyz(34.7863, 39.4995, 8.1742)
Luminance0.3950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AB2C #2C39B8
analogous
#B8652C #B8AB2C #7FB82C
triadic
#B8AB2C #2CB8AB #AB2CB8
tetradic
#B8AB2C #2CB865 #2C39B8 #B82C7F
square
#B8AB2C #2CB865 #2C39B8 #B82C7F
split-complementary
#B8AB2C #2C7FB8 #652CB8
monochromatic
#554F14 #877D20 #B8AB2C #D4C84D #E0D77E

Accessibility & contrast

On white

2.36
#B8AB2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#B8AB2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AB2C
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AB2C#FFFFFF#000000##000000
##B8AB2C1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA510
Deuteranopia (green-blind)
#BFAB35
Tritanopia (blue-blind)
#C69F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ab2c;
/* rgb */ color: rgb(184, 171, 44);
/* oklch */ color: oklch(73.1% 0.140 103.3);
Tailwind
colors: {
  custom: {
    50: '#d1c36f',
    500: '#b8ab2c',
    950: '#000000',
  },
}
SCSS
$custom: #b8ab2c;
$custom-light: #d1c36f;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ab2c",
  "rgb": {
    "r": 184,
    "g": 171,
    "b": 44
  },
  "hsl": {
    "h": 54.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.73058,
    "c": 0.14029,
    "h": 103.3
  },
  "luminance": 0.39498
}

Semantic roles & 50–950 ramp

primary
#B8AB2C
secondary
#777FC9
accent
#52E543
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8AB2C

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

Preview Lab → · Contrast checker → · Palette generator →

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