#B8AB2E#B8AB2E

#B8AB2E 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#B8AB2E
RGBrgb(184, 171, 46)
HSLhsl(54, 60%, 45%)
HSVhsv(54, 75%, 72%)
CMYKcmyk(0%, 7.1%, 75%, 27.8%)
CIE-LABlab(69.12, -9.12, 61.70)
CIE-LCHlch(69.12, 62.37, 98.41°)
OKLaboklab(73.07% -0.0318 0.1355)
OKLCHoklch(73.07% 0.139 103.2)
XYZxyz(34.8248, 39.5149, 8.3770)
Luminance0.3951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AB2E #2E3BB8
analogous
#B8662E #B8AB2E #80B82E
triadic
#B8AB2E #2EB8AB #AB2EB8
tetradic
#B8AB2E #2EB866 #2E3BB8 #B82E80
square
#B8AB2E #2EB866 #2E3BB8 #B82E80
split-complementary
#B8AB2E #2E80B8 #662EB8
monochromatic
#565016 #877D22 #B8AB2E #D3C750 #DFD781

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8AB2E#FFFFFF#000000##000000
##B8AB2E1.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)
#BBA515
Deuteranopia (green-blind)
#BFAB37
Tritanopia (blue-blind)
#C69F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ab2e;
/* rgb */ color: rgb(184, 171, 46);
/* oklch */ color: oklch(73.1% 0.139 103.2);
Tailwind
colors: {
  custom: {
    50: '#d1c370',
    500: '#b8ab2e',
    950: '#000000',
  },
}
SCSS
$custom: #b8ab2e;
$custom-light: #d1c370;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ab2e",
  "rgb": {
    "r": 184,
    "g": 171,
    "b": 46
  },
  "hsl": {
    "h": 54.348,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.7307,
    "c": 0.13917,
    "h": 103.2
  },
  "luminance": 0.39513
}

Semantic roles & 50–950 ramp

primary
#B8AB2E
secondary
#7981C8
accent
#54E345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8AB2E

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

Preview Lab → · Contrast checker → · Palette generator →

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