#B5BA2A#B5BA2A

#B5BA2A is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.1% C 0.156 H 111.7°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#B5BA2A
RGBrgb(181, 186, 42)
HSLhsl(62, 63%, 45%)
HSVhsv(62, 77%, 73%)
CMYKcmyk(2.7%, 0%, 77.4%, 27.1%)
CIE-LABlab(72.96, -18.27, 66.44)
CIE-LCHlch(72.96, 68.91, 105.38°)
OKLaboklab(76.07% -0.0575 0.145)
OKLCHoklch(76.07% 0.156 111.7)
XYZxyz(37.0342, 45.1097, 8.9462)
Luminance0.4511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5BA2A #2F2ABA
analogous
#BA772A #B5BA2A #6DBA2A
triadic
#B5BA2A #2AB5BA #BA2AB5
tetradic
#B5BA2A #2ABA77 #2F2ABA #BA2A6D
square
#B5BA2A #2ABA77 #2F2ABA #BA2A6D
split-complementary
#B5BA2A #2A6DBA #772ABA
monochromatic
#545613 #84881F #B5BA2A #D1D64B #DEE27D

Accessibility & contrast

On white

2.10
#B5BA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#B5BA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5BA2A
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5BA2A#FFFFFF#000000##000000
##B5BA2A1.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#C9B537
Tritanopia (blue-blind)
#C2AE9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b5ba2a;
/* rgb */ color: rgb(181, 186, 42);
/* oklch */ color: oklch(76.1% 0.156 111.7);
Tailwind
colors: {
  custom: {
    50: '#cfce70',
    500: '#b5ba2a',
    950: '#000000',
  },
}
SCSS
$custom: #b5ba2a;
$custom-light: #cfce70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ba2a",
  "rgb": {
    "r": 181,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 62.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.76067,
    "c": 0.15595,
    "h": 111.7
  },
  "luminance": 0.45109
}

Semantic roles & 50–950 ramp

primary
#B5BA2A
secondary
#7976CA
accent
#42E647
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5BA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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