#B4BF2A#B4BF2A

#B4BF2A is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.1% C 0.161 H 114.0°. Best body text is #000000 at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#B4BF2A
RGBrgb(180, 191, 42)
HSLhsl(64, 64%, 46%)
HSVhsv(64, 78%, 75%)
CMYKcmyk(5.8%, 0%, 78%, 25.1%)
CIE-LABlab(74.27, -21.19, 67.59)
CIE-LCHlch(74.27, 70.83, 107.40°)
OKLaboklab(77.1% -0.0656 0.1475)
OKLCHoklch(77.1% 0.161 114)
XYZxyz(37.8723, 47.1328, 9.2925)
Luminance0.4713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4BF2A #352ABF
analogous
#BF802A #B4BF2A #69BF2A
triadic
#B4BF2A #2AB4BF #BF2AB4
tetradic
#B4BF2A #2ABF80 #352ABF #BF2A69
square
#B4BF2A #2ABF80 #352ABF #BF2A69
split-complementary
#B4BF2A #2A69BF #802ABF
monochromatic
#555B14 #858D1F #B4BF2A #CED84E #DCE380

Accessibility & contrast

On white

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

On black

10.43
#B4BF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4BF2A
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4BF2A#FFFFFF#000000##000000
##B4BF2A1.002.0110.4310.43
#FFFFFF2.011.0021.0021.00
#00000010.4321.001.001.00
##00000010.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4bf2a;
/* rgb */ color: rgb(180, 191, 42);
/* oklch */ color: oklch(77.1% 0.161 114.0);
Tailwind
colors: {
  custom: {
    50: '#ced271',
    500: '#b4bf2a',
    950: '#000000',
  },
}
SCSS
$custom: #b4bf2a;
$custom-light: #ced271;
$custom-dark: #000000;
JSON
{
  "hex": "#b4bf2a",
  "rgb": {
    "r": 180,
    "g": 191,
    "b": 42
  },
  "hsl": {
    "h": 64.43,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.77098,
    "c": 0.16137,
    "h": 114
  },
  "luminance": 0.47132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B4BF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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