#B4BA2A#B4BA2A

#B4BA2A is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.0% C 0.156 H 112.1°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#B4BA2A
RGBrgb(180, 186, 42)
HSLhsl(63, 63%, 45%)
HSVhsv(63, 77%, 73%)
CMYKcmyk(3.2%, 0%, 77.4%, 27.1%)
CIE-LABlab(72.88, -18.70, 66.34)
CIE-LCHlch(72.88, 68.92, 105.74°)
OKLaboklab(75.98% -0.0587 0.1448)
OKLCHoklch(75.98% 0.156 112.1)
XYZxyz(36.8005, 44.9892, 8.9353)
Luminance0.4499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4BA2A #302ABA
analogous
#BA782A #B4BA2A #6CBA2A
triadic
#B4BA2A #2AB4BA #BA2AB4
tetradic
#B4BA2A #2ABA78 #302ABA #BA2A6C
square
#B4BA2A #2ABA78 #302ABA #BA2A6C
split-complementary
#B4BA2A #2A6CBA #782ABA
monochromatic
#535613 #84881F #B4BA2A #D1D64B #DDE27D

Accessibility & contrast

On white

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

On black

10.00
#B4BA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4BA2A
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4BA2A#FFFFFF#000000##000000
##B4BA2A1.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4ba2a;
/* rgb */ color: rgb(180, 186, 42);
/* oklch */ color: oklch(76.0% 0.156 112.1);
Tailwind
colors: {
  custom: {
    50: '#cece70',
    500: '#b4ba2a',
    950: '#000000',
  },
}
SCSS
$custom: #b4ba2a;
$custom-light: #cece70;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ba2a",
  "rgb": {
    "r": 180,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 62.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75984,
    "c": 0.15622,
    "h": 112.1
  },
  "luminance": 0.44988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B4BA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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