#B9AB30#B9AB30

#B9AB30 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 73.2% C 0.138 H 102.6°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#B9AB30
RGBrgb(185, 171, 48)
HSLhsl(54, 59%, 46%)
HSVhsv(54, 74%, 73%)
CMYKcmyk(0%, 7.6%, 74.1%, 27.5%)
CIE-LABlab(69.22, -8.60, 61.12)
CIE-LCHlch(69.22, 61.72, 98.01°)
OKLaboklab(73.18% -0.0302 0.1346)
OKLCHoklch(73.18% 0.138 102.6)
XYZxyz(35.1056, 39.6550, 8.6008)
Luminance0.3965 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AB30 #303EB9
analogous
#B96730 #B9AB30 #82B930
triadic
#B9AB30 #30B9AB #AB30B9
tetradic
#B9AB30 #30B967 #303EB9 #B93082
square
#B9AB30 #30B967 #303EB9 #B93082
split-complementary
#B9AB30 #3082B9 #6730B9
monochromatic
#585117 #887E23 #B9AB30 #D3C654 #DFD684

Accessibility & contrast

On white

2.35
#B9AB30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#B9AB30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AB30
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AB30#FFFFFF#000000##000000
##B9AB301.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA519
Deuteranopia (green-blind)
#BFAC39
Tritanopia (blue-blind)
#C79F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b9ab30;
/* rgb */ color: rgb(185, 171, 48);
/* oklch */ color: oklch(73.2% 0.138 102.6);
Tailwind
colors: {
  custom: {
    50: '#d2c371',
    500: '#b9ab30',
    950: '#000000',
  },
}
SCSS
$custom: #b9ab30;
$custom-light: #d2c371;
$custom-dark: #000000;
JSON
{
  "hex": "#b9ab30",
  "rgb": {
    "r": 185,
    "g": 171,
    "b": 48
  },
  "hsl": {
    "h": 53.869,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.73175,
    "c": 0.13794,
    "h": 102.6
  },
  "luminance": 0.39654
}

Semantic roles & 50–950 ramp

primary
#B9AB30
secondary
#7C84C9
accent
#56E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9AB30

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

Preview Lab → · Contrast checker → · Palette generator →

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