#B1BF31#B1BF31

#B1BF31 is a light, vivid yellow. Relative luminance 0.468; OKLCH L 76.9% C 0.159 H 115.2°. Best body text is #000000 at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#B1BF31
RGBrgb(177, 191, 49)
HSLhsl(66, 59%, 47%)
HSVhsv(66, 74%, 75%)
CMYKcmyk(7.3%, 0%, 74.3%, 25.1%)
CIE-LABlab(74.08, -22.16, 65.14)
CIE-LCHlch(74.08, 68.81, 108.79°)
OKLaboklab(76.9% -0.0675 0.1436)
OKLCHoklch(76.9% 0.159 115.2)
XYZxyz(37.3177, 46.8311, 9.9786)
Luminance0.4683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1BF31 #3F31BF
analogous
#BF8631 #B1BF31 #6ABF31
triadic
#B1BF31 #31B1BF #BF31B1
tetradic
#B1BF31 #31BF86 #3F31BF #BF316A
square
#B1BF31 #31BF86 #3F31BF #BF316A
split-complementary
#B1BF31 #316ABF #8631BF
monochromatic
#575E18 #848E25 #B1BF31 #C8D459 #D8E18A

Accessibility & contrast

On white

2.03
#B1BF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.37
#B1BF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1BF31
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1BF31#FFFFFF#000000##000000
##B1BF311.002.0310.3710.37
#FFFFFF2.031.0021.0021.00
#00000010.3721.001.001.00
##00000010.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB511
Deuteranopia (green-blind)
#CCB73D
Tritanopia (blue-blind)
#BDB4A4
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #b1bf31;
/* rgb */ color: rgb(177, 191, 49);
/* oklch */ color: oklch(76.9% 0.159 115.2);
Tailwind
colors: {
  custom: {
    50: '#ccd274',
    500: '#b1bf31',
    950: '#000000',
  },
}
SCSS
$custom: #b1bf31;
$custom-light: #ccd274;
$custom-dark: #000000;
JSON
{
  "hex": "#b1bf31",
  "rgb": {
    "r": 177,
    "g": 191,
    "b": 49
  },
  "hsl": {
    "h": 65.915,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.76898,
    "c": 0.15867,
    "h": 115.2
  },
  "luminance": 0.4683
}

Semantic roles & 50–950 ramp

primary
#B1BF31
secondary
#8881CB
accent
#45E255
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141409
muted
#83827B

Preview Lab

Preview with #B1BF31

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

Preview Lab → · Contrast checker → · Palette generator →

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