#BBA831#BBA831

#BBA831 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.7% C 0.135 H 99.9°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#BBA831
RGBrgb(187, 168, 49)
HSLhsl(52, 58%, 46%)
HSVhsv(52, 74%, 73%)
CMYKcmyk(0%, 10.2%, 73.8%, 26.7%)
CIE-LABlab(68.60, -6.10, 60.23)
CIE-LCHlch(68.60, 60.54, 95.78°)
OKLaboklab(72.73% -0.0231 0.1328)
OKLCHoklch(72.73% 0.135 99.9)
XYZxyz(35.0522, 38.7935, 8.5467)
Luminance0.3879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BBA831 #3144BB
analogous
#BB6331 #BBA831 #89BB31
triadic
#BBA831 #31BBA8 #A831BB
tetradic
#BBA831 #31BB63 #3144BB #BB3189
square
#BBA831 #31BB63 #3144BB #BB3189
split-complementary
#BBA831 #3189BB #6331BB
monochromatic
#5A5118 #8B7C24 #BBA831 #D3C256 #E0D387

Accessibility & contrast

On white

2.40
#BBA831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#BBA831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BBA831
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BBA831#FFFFFF#000000##000000
##BBA8311.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31C
Deuteranopia (green-blind)
#BEAA39
Tritanopia (blue-blind)
#CA9B91
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #bba831;
/* rgb */ color: rgb(187, 168, 49);
/* oklch */ color: oklch(72.7% 0.135 99.9);
Tailwind
colors: {
  custom: {
    50: '#d3c172',
    500: '#bba831',
    950: '#000000',
  },
}
SCSS
$custom: #bba831;
$custom-light: #d3c172;
$custom-dark: #000000;
JSON
{
  "hex": "#bba831",
  "rgb": {
    "r": 187,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 51.739,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.72726,
    "c": 0.13482,
    "h": 99.9
  },
  "luminance": 0.38792
}

Semantic roles & 50–950 ramp

primary
#BBA831
secondary
#7F89C9
accent
#5CE246
background
#FDFBF7
surface
#FBF7ED
border
#D4D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BBA831

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

Preview Lab → · Contrast checker → · Palette generator →

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