#B8AB2D#B8AB2D

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

Color values

HEX#B8AB2D
RGBrgb(184, 171, 45)
HSLhsl(54, 61%, 45%)
HSVhsv(54, 76%, 72%)
CMYKcmyk(0%, 7.1%, 75.5%, 27.8%)
CIE-LABlab(69.12, -9.17, 62.04)
CIE-LCHlch(69.12, 62.71, 98.41°)
OKLaboklab(73.06% -0.032 0.136)
OKLCHoklch(73.06% 0.14 103.2)
XYZxyz(34.8053, 39.5071, 8.2744)
Luminance0.3951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AB2D #2D3AB8
analogous
#B8652D #B8AB2D #80B82D
triadic
#B8AB2D #2DB8AB #AB2DB8
tetradic
#B8AB2D #2DB865 #2D3AB8 #B82D80
square
#B8AB2D #2DB865 #2D3AB8 #B82D80
split-complementary
#B8AB2D #2D80B8 #652DB8
monochromatic
#565015 #877D21 #B8AB2D #D4C74E #E0D780

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8AB2D#FFFFFF#000000##000000
##B8AB2D1.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)
#BBA512
Deuteranopia (green-blind)
#BFAB36
Tritanopia (blue-blind)
#C69F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ab2d;
/* rgb */ color: rgb(184, 171, 45);
/* oklch */ color: oklch(73.1% 0.140 103.2);
Tailwind
colors: {
  custom: {
    50: '#d1c370',
    500: '#b8ab2d',
    950: '#000000',
  },
}
SCSS
$custom: #b8ab2d;
$custom-light: #d1c370;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ab2d",
  "rgb": {
    "r": 184,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 54.388,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.73064,
    "c": 0.13973,
    "h": 103.2
  },
  "luminance": 0.39506
}

Semantic roles & 50–950 ramp

primary
#B8AB2D
secondary
#7880C9
accent
#53E444
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8AB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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