#B1BA31#B1BA31

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

Color values

HEX#B1BA31
RGBrgb(177, 186, 49)
HSLhsl(64, 58%, 46%)
HSVhsv(64, 74%, 73%)
CMYKcmyk(4.8%, 0%, 73.7%, 27.1%)
CIE-LABlab(72.69, -19.68, 63.82)
CIE-LCHlch(72.69, 66.79, 107.14°)
OKLaboklab(75.78% -0.0606 0.1408)
OKLCHoklch(75.78% 0.153 113.3)
XYZxyz(36.2459, 44.6875, 9.6213)
Luminance0.4469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1BA31 #3A31BA
analogous
#BA7E31 #B1BA31 #6CBA31
triadic
#B1BA31 #31B1BA #BA31B1
tetradic
#B1BA31 #31BA7E #3A31BA #BA316C
square
#B1BA31 #31BA7E #3A31BA #BA316C
split-complementary
#B1BA31 #316CBA #7E31BA
monochromatic
#555917 #838A24 #B1BA31 #CAD256 #D9DF86

Accessibility & contrast

On white

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

On black

9.94
#B1BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1BA31
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1BA31#FFFFFF#000000##000000
##B1BA311.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1ba31;
/* rgb */ color: rgb(177, 186, 49);
/* oklch */ color: oklch(75.8% 0.153 113.3);
Tailwind
colors: {
  custom: {
    50: '#ccce73',
    500: '#b1ba31',
    950: '#000000',
  },
}
SCSS
$custom: #b1ba31;
$custom-light: #ccce73;
$custom-dark: #000000;
JSON
{
  "hex": "#b1ba31",
  "rgb": {
    "r": 177,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 63.942,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.75778,
    "c": 0.15331,
    "h": 113.3
  },
  "luminance": 0.44687
}

Semantic roles & 50–950 ramp

primary
#B1BA31
secondary
#837EC9
accent
#46E250
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B1BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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