#B5BA31#B5BA31

#B5BA31 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.1% C 0.152 H 111.6°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#B5BA31
RGBrgb(181, 186, 49)
HSLhsl(62, 58%, 46%)
HSVhsv(62, 74%, 73%)
CMYKcmyk(2.7%, 0%, 73.7%, 27.1%)
CIE-LABlab(73.00, -17.98, 64.23)
CIE-LCHlch(73.00, 66.70, 105.64°)
OKLaboklab(76.11% -0.0561 0.1415)
OKLCHoklch(76.11% 0.152 111.6)
XYZxyz(37.1706, 45.1643, 9.6647)
Luminance0.4516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5BA31 #3631BA
analogous
#BA7A31 #B5BA31 #70BA31
triadic
#B5BA31 #31B5BA #BA31B5
tetradic
#B5BA31 #31BA7A #3631BA #BA3170
square
#B5BA31 #31BA7A #3631BA #BA3170
split-complementary
#B5BA31 #3170BA #7A31BA
monochromatic
#575917 #868A24 #B5BA31 #CED256 #DCDF86

Accessibility & contrast

On white

2.09
#B5BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#B5BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5BA31
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5BA31#FFFFFF#000000##000000
##B5BA311.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B114
Deuteranopia (green-blind)
#C9B53C
Tritanopia (blue-blind)
#C2AEA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b5ba31;
/* rgb */ color: rgb(181, 186, 49);
/* oklch */ color: oklch(76.1% 0.152 111.6);
Tailwind
colors: {
  custom: {
    50: '#cfce73',
    500: '#b5ba31',
    950: '#000000',
  },
}
SCSS
$custom: #b5ba31;
$custom-light: #cfce73;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ba31",
  "rgb": {
    "r": 181,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 62.19,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76107,
    "c": 0.15224,
    "h": 111.6
  },
  "luminance": 0.45163
}

Semantic roles & 50–950 ramp

primary
#B5BA31
secondary
#817EC9
accent
#46E24C
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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