#BBAB42#BBAB42

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

Color values

HEX#BBAB42
RGBrgb(187, 171, 66)
HSLhsl(52, 48%, 50%)
HSVhsv(52, 65%, 73%)
CMYKcmyk(0%, 8.6%, 64.7%, 26.7%)
CIE-LABlab(69.53, -6.76, 54.34)
CIE-LCHlch(69.53, 54.76, 97.09°)
OKLaboklab(73.5% -0.0231 0.1233)
OKLCHoklch(73.5% 0.125 100.6)
XYZxyz(36.0413, 40.0855, 10.9920)
Luminance0.4008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BBAB42 #4252BB
analogous
#BB6F42 #BBAB42 #8FBB42
triadic
#BBAB42 #42BBAB #AB42BB
tetradic
#BBAB42 #42BB6F #4252BB #BB428F
square
#BBAB42 #42BB6F #4252BB #BB428F
split-complementary
#BBAB42 #428FBB #6F42BB
monochromatic
#615822 #8E8232 #BBAB42 #CCC06E #DCD39C

Accessibility & contrast

On white

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

On black

9.02
#BBAB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BBAB42
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BBAB42#FFFFFF#000000##000000
##BBAB421.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bbab42;
/* rgb */ color: rgb(187, 171, 66);
/* oklch */ color: oklch(73.5% 0.125 100.6);
Tailwind
colors: {
  custom: {
    50: '#d3c37b',
    500: '#bbab42',
    950: '#000000',
  },
}
SCSS
$custom: #bbab42;
$custom-light: #d3c37b;
$custom-dark: #000000;
JSON
{
  "hex": "#bbab42",
  "rgb": {
    "r": 187,
    "g": 171,
    "b": 66
  },
  "hsl": {
    "h": 52.066,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.73502,
    "c": 0.12547,
    "h": 100.6
  },
  "luminance": 0.40084
}

Semantic roles & 50–950 ramp

primary
#BBAB42
secondary
#9198C8
accent
#62D750
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#15120A
muted
#83817C

Preview Lab

Preview with #BBAB42

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

Preview Lab → · Contrast checker → · Palette generator →

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