#BBAB40#BBAB40

#BBAB40 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.5% C 0.127 H 100.8°. Best body text is #000000 at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#BBAB40
RGBrgb(187, 171, 64)
HSLhsl(52, 49%, 49%)
HSVhsv(52, 66%, 73%)
CMYKcmyk(0%, 8.6%, 65.8%, 26.7%)
CIE-LABlab(69.51, -6.89, 55.18)
CIE-LCHlch(69.51, 55.61, 97.11°)
OKLaboklab(73.48% -0.0237 0.1248)
OKLCHoklch(73.48% 0.127 100.8)
XYZxyz(35.9833, 40.0623, 10.6869)
Luminance0.4006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BBAB40 #4050BB
analogous
#BB6E40 #BBAB40 #8EBB40
triadic
#BBAB40 #40BBAB #AB40BB
tetradic
#BBAB40 #40BB6E #4050BB #BB408E
square
#BBAB40 #40BB6E #4050BB #BB408E
split-complementary
#BBAB40 #408EBB #6E40BB
monochromatic
#605821 #8D8130 #BBAB40 #CDC06C #DCD399

Accessibility & contrast

On white

2.33
#BBAB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.01
#BBAB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BBAB40
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BBAB40#FFFFFF#000000##000000
##BBAB401.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA632
Deuteranopia (green-blind)
#BFAD46
Tritanopia (blue-blind)
#C99F95
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #bbab40;
/* rgb */ color: rgb(187, 171, 64);
/* oklch */ color: oklch(73.5% 0.127 100.8);
Tailwind
colors: {
  custom: {
    50: '#d3c37a',
    500: '#bbab40',
    950: '#000000',
  },
}
SCSS
$custom: #bbab40;
$custom-light: #d3c37a;
$custom-dark: #000000;
JSON
{
  "hex": "#bbab40",
  "rgb": {
    "r": 187,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 52.195,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.73484,
    "c": 0.12702,
    "h": 100.8
  },
  "luminance": 0.40061
}

Semantic roles & 50–950 ramp

primary
#BBAB40
secondary
#8F96C8
accent
#61D94F
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#15120A
muted
#83817C

Preview Lab

Preview with #BBAB40

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

Preview Lab → · Contrast checker → · Palette generator →

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