#B1B31C#B1B31C

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

Color values

HEX#B1B31C
RGBrgb(177, 179, 28)
HSLhsl(61, 73%, 41%)
HSVhsv(61, 84%, 70%)
CMYKcmyk(1.1%, 0%, 84.4%, 29.8%)
CIE-LABlab(70.64, -16.93, 68.04)
CIE-LCHlch(70.64, 70.11, 103.97°)
OKLaboklab(74.11% -0.0546 0.1461)
OKLCHoklch(74.11% 0.156 110.5)
XYZxyz(34.4625, 41.6722, 7.3266)
Luminance0.4167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1B31C #1E1CB3
analogous
#B36A1C #B1B31C #65B31C
triadic
#B1B31C #1CB1B3 #B31CB1
tetradic
#B1B31C #1CB36A #1E1CB3 #B31C65
square
#B1B31C #1CB36A #1E1CB3 #B31C65
split-complementary
#B1B31C #1C65B3 #6A1CB3
monochromatic
#48490B #7D7E14 #B1B31C #DCDE2E #E5E763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1B31C#FFFFFF#000000##000000
##B1B31C1.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)
#C3AF2C
Tritanopia (blue-blind)
#BEA799
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b1b31c;
/* rgb */ color: rgb(177, 179, 28);
/* oklch */ color: oklch(74.1% 0.156 110.5);
Tailwind
colors: {
  custom: {
    50: '#ccc96a',
    500: '#b1b31c',
    950: '#000000',
  },
}
SCSS
$custom: #b1b31c;
$custom-light: #ccc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#b1b31c",
  "rgb": {
    "r": 177,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 60.795,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.74114,
    "c": 0.15598,
    "h": 110.5
  },
  "luminance": 0.41671
}

Semantic roles & 50–950 ramp

primary
#B1B31C
secondary
#615FCB
accent
#38F03B
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B1B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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