#B8AB2F#B8AB2F

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

Color values

HEX#B8AB2F
RGBrgb(184, 171, 47)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 74%, 72%)
CMYKcmyk(0%, 7.1%, 74.5%, 27.8%)
CIE-LABlab(69.13, -9.08, 61.36)
CIE-LCHlch(69.13, 62.02, 98.42°)
OKLaboklab(73.08% -0.0316 0.1349)
OKLCHoklch(73.08% 0.139 103.2)
XYZxyz(34.8447, 39.5229, 8.4820)
Luminance0.3952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AB2F #2F3CB8
analogous
#B8672F #B8AB2F #80B82F
triadic
#B8AB2F #2FB8AB #AB2FB8
tetradic
#B8AB2F #2FB867 #2F3CB8 #B82F80
square
#B8AB2F #2FB867 #2F3CB8 #B82F80
split-complementary
#B8AB2F #2F80B8 #672FB8
monochromatic
#575016 #877E23 #B8AB2F #D3C652 #DFD682

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8AB2F#FFFFFF#000000##000000
##B8AB2F1.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)
#BBA517
Deuteranopia (green-blind)
#BFAB38
Tritanopia (blue-blind)
#C69F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ab2f;
/* rgb */ color: rgb(184, 171, 47);
/* oklch */ color: oklch(73.1% 0.139 103.2);
Tailwind
colors: {
  custom: {
    50: '#d1c371',
    500: '#b8ab2f',
    950: '#000000',
  },
}
SCSS
$custom: #b8ab2f;
$custom-light: #d1c371;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ab2f",
  "rgb": {
    "r": 184,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 54.307,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.73076,
    "c": 0.13859,
    "h": 103.2
  },
  "luminance": 0.39521
}

Semantic roles & 50–950 ramp

primary
#B8AB2F
secondary
#7B82C8
accent
#54E245
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8AB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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