#B2BA2A#B2BA2A

#B2BA2A is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.8% C 0.157 H 112.9°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#B2BA2A
RGBrgb(178, 186, 42)
HSLhsl(63, 63%, 45%)
HSVhsv(63, 77%, 73%)
CMYKcmyk(4.3%, 0%, 77.4%, 27.1%)
CIE-LABlab(72.73, -19.55, 66.14)
CIE-LCHlch(72.73, 68.97, 106.47°)
OKLaboklab(75.82% -0.0609 0.1444)
OKLCHoklch(75.82% 0.157 112.9)
XYZxyz(36.3381, 44.7508, 8.9136)
Luminance0.4475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2BA2A #322ABA
analogous
#BA7A2A #B2BA2A #6ABA2A
triadic
#B2BA2A #2AB2BA #BA2AB2
tetradic
#B2BA2A #2ABA7A #322ABA #BA2A6A
square
#B2BA2A #2ABA7A #322ABA #BA2A6A
split-complementary
#B2BA2A #2A6ABA #7A2ABA
monochromatic
#525613 #82881F #B2BA2A #CFD64B #DCE27D

Accessibility & contrast

On white

2.11
#B2BA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#B2BA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2BA2A
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2BA2A#FFFFFF#000000##000000
##B2BA2A1.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B100
Deuteranopia (green-blind)
#C9B437
Tritanopia (blue-blind)
#BEAE9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b2ba2a;
/* rgb */ color: rgb(178, 186, 42);
/* oklch */ color: oklch(75.8% 0.157 112.9);
Tailwind
colors: {
  custom: {
    50: '#cdce70',
    500: '#b2ba2a',
    950: '#000000',
  },
}
SCSS
$custom: #b2ba2a;
$custom-light: #cdce70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ba2a",
  "rgb": {
    "r": 178,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 63.333,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.7582,
    "c": 0.15675,
    "h": 112.9
  },
  "luminance": 0.4475
}

Semantic roles & 50–950 ramp

primary
#B2BA2A
secondary
#7B76CA
accent
#42E64B
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2BA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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