#B5BF2A#B5BF2A

#B5BF2A is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.2% C 0.161 H 113.6°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#B5BF2A
RGBrgb(181, 191, 42)
HSLhsl(64, 64%, 46%)
HSVhsv(64, 78%, 75%)
CMYKcmyk(5.2%, 0%, 78%, 25.1%)
CIE-LABlab(74.35, -20.76, 67.69)
CIE-LCHlch(74.35, 70.80, 107.05°)
OKLaboklab(77.18% -0.0644 0.1476)
OKLCHoklch(77.18% 0.161 113.6)
XYZxyz(38.1060, 47.2533, 9.3035)
Luminance0.4725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5BF2A #342ABF
analogous
#BF7E2A #B5BF2A #6ABF2A
triadic
#B5BF2A #2AB5BF #BF2AB5
tetradic
#B5BF2A #2ABF7E #342ABF #BF2A6A
square
#B5BF2A #2ABF7E #342ABF #BF2A6A
split-complementary
#B5BF2A #2A6ABF #7E2ABF
monochromatic
#565B14 #858D1F #B5BF2A #CFD84E #DCE380

Accessibility & contrast

On white

2.01
#B5BF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#B5BF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5BF2A
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5BF2A#FFFFFF#000000##000000
##B5BF2A1.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB500
Deuteranopia (green-blind)
#CDB838
Tritanopia (blue-blind)
#C1B3A4
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #b5bf2a;
/* rgb */ color: rgb(181, 191, 42);
/* oklch */ color: oklch(77.2% 0.161 113.6);
Tailwind
colors: {
  custom: {
    50: '#cfd271',
    500: '#b5bf2a',
    950: '#000000',
  },
}
SCSS
$custom: #b5bf2a;
$custom-light: #cfd271;
$custom-dark: #000000;
JSON
{
  "hex": "#b5bf2a",
  "rgb": {
    "r": 181,
    "g": 191,
    "b": 42
  },
  "hsl": {
    "h": 64.027,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.77179,
    "c": 0.16107,
    "h": 113.6
  },
  "luminance": 0.47253
}

Semantic roles & 50–950 ramp

primary
#B5BF2A
secondary
#7F79CC
accent
#41E74C
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B

Preview Lab

Preview with #B5BF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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