#B2BA40#B2BA40

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

Color values

HEX#B2BA40
RGBrgb(178, 186, 64)
HSLhsl(64, 49%, 49%)
HSVhsv(64, 66%, 73%)
CMYKcmyk(4.3%, 0%, 65.6%, 27.1%)
CIE-LABlab(72.86, -18.45, 58.44)
CIE-LCHlch(72.86, 61.28, 107.52°)
OKLaboklab(75.97% -0.0558 0.1319)
OKLCHoklch(75.97% 0.143 112.9)
XYZxyz(36.8454, 44.9537, 11.5855)
Luminance0.4495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2BA40 #4840BA
analogous
#BA8540 #B2BA40 #75BA40
triadic
#B2BA40 #40B2BA #BA40B2
tetradic
#B2BA40 #40BA85 #4840BA #BA4075
square
#B2BA40 #40BA85 #4840BA #BA4075
split-complementary
#B2BA40 #4075BA #8540BA
monochromatic
#5B5F21 #868C30 #B2BA40 #C6CC6B #D7DC99

Accessibility & contrast

On white

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

On black

9.99
#B2BA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2BA40
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2BA40#FFFFFF#000000##000000
##B2BA401.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B12F
Deuteranopia (green-blind)
#C8B448
Tritanopia (blue-blind)
#BEAFA1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b2ba40;
/* rgb */ color: rgb(178, 186, 64);
/* oklch */ color: oklch(76.0% 0.143 112.9);
Tailwind
colors: {
  custom: {
    50: '#ccce7b',
    500: '#b2ba40',
    950: '#000000',
  },
}
SCSS
$custom: #b2ba40;
$custom-light: #ccce7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ba40",
  "rgb": {
    "r": 178,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 63.934,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.75969,
    "c": 0.14324,
    "h": 112.9
  },
  "luminance": 0.44953
}

Semantic roles & 50–950 ramp

primary
#B2BA40
secondary
#928EC8
accent
#4FD858
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2BA40

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

Preview Lab → · Contrast checker → · Palette generator →

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