#B7BB31#B7BB31

#B7BB31 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 76.5% C 0.153 H 111.2°. Best body text is #000000 at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#B7BB31
RGBrgb(183, 187, 49)
HSLhsl(62, 58%, 46%)
HSVhsv(62, 74%, 73%)
CMYKcmyk(2.1%, 0%, 73.8%, 26.7%)
CIE-LABlab(73.44, -17.63, 64.70)
CIE-LCHlch(73.44, 67.06, 105.24°)
OKLaboklab(76.5% -0.0553 0.1424)
OKLCHoklch(76.5% 0.153 111.2)
XYZxyz(37.8544, 45.8307, 9.7573)
Luminance0.4583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7BB31 #3531BB
analogous
#BB7A31 #B7BB31 #72BB31
triadic
#B7BB31 #31B7BB #BB31B7
tetradic
#B7BB31 #31BB7A #3531BB #BB3172
square
#B7BB31 #31BB7A #3531BB #BB3172
split-complementary
#B7BB31 #3172BB #7A31BB
monochromatic
#585A18 #888B24 #B7BB31 #CFD356 #DDE087

Accessibility & contrast

On white

2.07
#B7BB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.17
#B7BB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7BB31
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7BB31#FFFFFF#000000##000000
##B7BB311.002.0710.1710.17
#FFFFFF2.071.0021.0021.00
#00000010.1721.001.001.00
##00000010.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB313
Deuteranopia (green-blind)
#CBB63C
Tritanopia (blue-blind)
#C4AFA1
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #b7bb31;
/* rgb */ color: rgb(183, 187, 49);
/* oklch */ color: oklch(76.5% 0.153 111.2);
Tailwind
colors: {
  custom: {
    50: '#d0cf74',
    500: '#b7bb31',
    950: '#000000',
  },
}
SCSS
$custom: #b7bb31;
$custom-light: #d0cf74;
$custom-dark: #000000;
JSON
{
  "hex": "#b7bb31",
  "rgb": {
    "r": 183,
    "g": 187,
    "b": 49
  },
  "hsl": {
    "h": 61.739,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.76495,
    "c": 0.15278,
    "h": 111.2
  },
  "luminance": 0.4583
}

Semantic roles & 50–950 ramp

primary
#B7BB31
secondary
#817FC9
accent
#46E24B
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7BB31

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

Preview Lab → · Contrast checker → · Palette generator →

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