#BBB240#BBB240

#BBB240 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 75.0% C 0.133 H 104.8°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#BBB240
RGBrgb(187, 178, 64)
HSLhsl(56, 49%, 49%)
HSVhsv(56, 66%, 73%)
CMYKcmyk(0%, 4.8%, 65.8%, 26.7%)
CIE-LABlab(71.40, -10.54, 57.16)
CIE-LCHlch(71.40, 58.12, 100.45°)
OKLaboklab(74.99% -0.0341 0.129)
OKLCHoklch(74.99% 0.133 104.8)
XYZxyz(37.3407, 42.7771, 11.1394)
Luminance0.4278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BBB240 #4049BB
analogous
#BB7540 #BBB240 #87BB40
triadic
#BBB240 #40BBB2 #B240BB
tetradic
#BBB240 #40BB75 #4049BB #BB4087
square
#BBB240 #40BB75 #4049BB #BB4087
split-complementary
#BBB240 #4087BB #7540BB
monochromatic
#605B21 #8D8730 #BBB240 #CDC56C #DCD799

Accessibility & contrast

On white

2.20
#BBB240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#BBB240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BBB240
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BBB240#FFFFFF#000000##000000
##BBB2401.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC31
Deuteranopia (green-blind)
#C4B147
Tritanopia (blue-blind)
#C8A69B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bbb240;
/* rgb */ color: rgb(187, 178, 64);
/* oklch */ color: oklch(75.0% 0.133 104.8);
Tailwind
colors: {
  custom: {
    50: '#d3c87b',
    500: '#bbb240',
    950: '#000000',
  },
}
SCSS
$custom: #bbb240;
$custom-light: #d3c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#bbb240",
  "rgb": {
    "r": 187,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 55.61,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.74986,
    "c": 0.13338,
    "h": 104.8
  },
  "luminance": 0.42776
}

Semantic roles & 50–950 ramp

primary
#BBB240
secondary
#8F93C8
accent
#59D94F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #BBB240

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

Preview Lab → · Contrast checker → · Palette generator →

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