#B2BA31#B2BA31

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

Color values

HEX#B2BA31
RGBrgb(178, 186, 49)
HSLhsl(64, 58%, 46%)
HSVhsv(64, 74%, 73%)
CMYKcmyk(4.3%, 0%, 73.7%, 27.1%)
CIE-LABlab(72.76, -19.26, 63.93)
CIE-LCHlch(72.76, 66.76, 106.76°)
OKLaboklab(75.86% -0.0595 0.141)
OKLCHoklch(75.86% 0.153 112.9)
XYZxyz(36.4745, 44.8054, 9.6320)
Luminance0.4481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2BA31 #3931BA
analogous
#BA7D31 #B2BA31 #6DBA31
triadic
#B2BA31 #31B2BA #BA31B2
tetradic
#B2BA31 #31BA7D #3931BA #BA316D
square
#B2BA31 #31BA7D #3931BA #BA316D
split-complementary
#B2BA31 #316DBA #7D31BA
monochromatic
#555917 #848A24 #B2BA31 #CBD256 #DADF86

Accessibility & contrast

On white

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

On black

9.96
#B2BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2BA31
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2BA31#FFFFFF#000000##000000
##B2BA311.002.119.969.96
#FFFFFF2.111.0021.0021.00
#0000009.9621.001.001.00
##0000009.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B114
Deuteranopia (green-blind)
#C8B43C
Tritanopia (blue-blind)
#BEAFA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b2ba31;
/* rgb */ color: rgb(178, 186, 49);
/* oklch */ color: oklch(75.9% 0.153 112.9);
Tailwind
colors: {
  custom: {
    50: '#cdce73',
    500: '#b2ba31',
    950: '#000000',
  },
}
SCSS
$custom: #b2ba31;
$custom-light: #cdce73;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ba31",
  "rgb": {
    "r": 178,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 63.504,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.7586,
    "c": 0.15303,
    "h": 112.9
  },
  "luminance": 0.44805
}

Semantic roles & 50–950 ramp

primary
#B2BA31
secondary
#827EC9
accent
#46E24F
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B2BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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