#B1B52F#B1B52F

#B1B52F is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.7% C 0.149 H 111.3°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#B1B52F
RGBrgb(177, 181, 47)
HSLhsl(62, 59%, 45%)
HSVhsv(62, 74%, 71%)
CMYKcmyk(2.2%, 0%, 74%, 29%)
CIE-LABlab(71.28, -17.26, 63.18)
CIE-LCHlch(71.28, 65.49, 105.28°)
OKLaboklab(74.65% -0.0541 0.1391)
OKLCHoklch(74.65% 0.149 111.3)
XYZxyz(35.1696, 42.6010, 9.0590)
Luminance0.4260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1B52F #332FB5
analogous
#B5762F #B1B52F #6EB52F
triadic
#B1B52F #2FB1B5 #B52FB1
tetradic
#B1B52F #2FB576 #332FB5 #B52F6E
square
#B1B52F #2FB576 #332FB5 #B52F6E
split-complementary
#B1B52F #2F6EB5 #762FB5
monochromatic
#525416 #818422 #B1B52F #CED150 #DBDE80

Accessibility & contrast

On white

2.21
#B1B52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#B1B52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1B52F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1B52F#FFFFFF#000000##000000
##B1B52F1.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD12
Deuteranopia (green-blind)
#C4B03A
Tritanopia (blue-blind)
#BDAA9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b1b52f;
/* rgb */ color: rgb(177, 181, 47);
/* oklch */ color: oklch(74.7% 0.149 111.3);
Tailwind
colors: {
  custom: {
    50: '#ccca72',
    500: '#b1b52f',
    950: '#000000',
  },
}
SCSS
$custom: #b1b52f;
$custom-light: #ccca72;
$custom-dark: #000000;
JSON
{
  "hex": "#b1b52f",
  "rgb": {
    "r": 177,
    "g": 181,
    "b": 47
  },
  "hsl": {
    "h": 61.791,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74652,
    "c": 0.14922,
    "h": 111.3
  },
  "luminance": 0.426
}

Semantic roles & 50–950 ramp

primary
#B1B52F
secondary
#7B79C7
accent
#46E24A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1B52F

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

Preview Lab → · Contrast checker → · Palette generator →

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