#B2BA28#B2BA28

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

Color values

HEX#B2BA28
RGBrgb(178, 186, 40)
HSLhsl(63, 65%, 44%)
HSVhsv(63, 78%, 73%)
CMYKcmyk(4.3%, 0%, 78.5%, 27.1%)
CIE-LABlab(72.72, -19.63, 66.72)
CIE-LCHlch(72.72, 69.55, 106.39°)
OKLaboklab(75.81% -0.0613 0.1453)
OKLCHoklch(75.81% 0.158 112.9)
XYZxyz(36.3032, 44.7368, 8.7298)
Luminance0.4474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2BA28 #3028BA
analogous
#BA7928 #B2BA28 #69BA28
triadic
#B2BA28 #28B2BA #BA28B2
tetradic
#B2BA28 #28BA79 #3028BA #BA2869
square
#B2BA28 #28BA79 #3028BA #BA2869
split-complementary
#B2BA28 #2869BA #7928BA
monochromatic
#525512 #82881D #B2BA28 #D0D848 #DDE27A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2BA28#FFFFFF#000000##000000
##B2BA281.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)
#C9B436
Tritanopia (blue-blind)
#BEAE9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b2ba28;
/* rgb */ color: rgb(178, 186, 40);
/* oklch */ color: oklch(75.8% 0.158 112.9);
Tailwind
colors: {
  custom: {
    50: '#cdce6f',
    500: '#b2ba28',
    950: '#000000',
  },
}
SCSS
$custom: #b2ba28;
$custom-light: #cdce6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ba28",
  "rgb": {
    "r": 178,
    "g": 186,
    "b": 40
  },
  "hsl": {
    "h": 63.288,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.75809,
    "c": 0.15771,
    "h": 112.9
  },
  "luminance": 0.44736
}

Semantic roles & 50–950 ramp

primary
#B2BA28
secondary
#7873CA
accent
#40E849
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2BA28

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

Preview Lab → · Contrast checker → · Palette generator →

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