#B1B31A#B1B31A

#B1B31A is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.1% C 0.157 H 110.5°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#B1B31A
RGBrgb(177, 179, 26)
HSLhsl(61, 75%, 40%)
HSVhsv(61, 85%, 70%)
CMYKcmyk(1.1%, 0%, 85.5%, 29.8%)
CIE-LABlab(70.64, -16.98, 68.48)
CIE-LCHlch(70.64, 70.56, 103.93°)
OKLaboklab(74.11% -0.0549 0.1467)
OKLCHoklch(74.11% 0.157 110.5)
XYZxyz(34.4394, 41.6629, 7.2047)
Luminance0.4166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1B31A #1C1AB3
analogous
#B3681A #B1B31A #65B31A
triadic
#B1B31A #1AB1B3 #B31AB1
tetradic
#B1B31A #1AB368 #1C1AB3 #B31A65
square
#B1B31A #1AB368 #1C1AB3 #B31A65
split-complementary
#B1B31A #1A65B3 #681AB3
monochromatic
#47480A #7C7E12 #B1B31A #DEE02A #E6E860

Accessibility & contrast

On white

2.25
#B1B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#B1B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1B31A
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1B31A#FFFFFF#000000##000000
##B1B31A1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C3AF2B
Tritanopia (blue-blind)
#BEA799
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b1b31a;
/* rgb */ color: rgb(177, 179, 26);
/* oklch */ color: oklch(74.1% 0.157 110.5);
Tailwind
colors: {
  custom: {
    50: '#cdc969',
    500: '#b1b31a',
    950: '#000000',
  },
}
SCSS
$custom: #b1b31a;
$custom-light: #cdc969;
$custom-dark: #000000;
JSON
{
  "hex": "#b1b31a",
  "rgb": {
    "r": 177,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 60.784,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.74107,
    "c": 0.15666,
    "h": 110.5
  },
  "luminance": 0.41662
}

Semantic roles & 50–950 ramp

primary
#B1B31A
secondary
#5E5DCC
accent
#37F139
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B1B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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