#B1B52E#B1B52E

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

Color values

HEX#B1B52E
RGBrgb(177, 181, 46)
HSLhsl(62, 59%, 45%)
HSVhsv(62, 75%, 71%)
CMYKcmyk(2.2%, 0%, 74.6%, 29%)
CIE-LABlab(71.28, -17.31, 63.51)
CIE-LCHlch(71.28, 65.82, 105.24°)
OKLaboklab(74.65% -0.0543 0.1396)
OKLCHoklch(74.65% 0.15 111.3)
XYZxyz(35.1497, 42.5930, 8.9539)
Luminance0.4259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1B52E #322EB5
analogous
#B5762E #B1B52E #6EB52E
triadic
#B1B52E #2EB1B5 #B52EB1
tetradic
#B1B52E #2EB576 #322EB5 #B52E6E
square
#B1B52E #2EB576 #322EB5 #B52E6E
split-complementary
#B1B52E #2E6EB5 #762EB5
monochromatic
#525315 #818422 #B1B52E #CED24E #DCDE7F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1B52E#FFFFFF#000000##000000
##B1B52E1.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)
#C3AD0F
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#BDAA9B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b1b52e;
/* rgb */ color: rgb(177, 181, 46);
/* oklch */ color: oklch(74.6% 0.150 111.3);
Tailwind
colors: {
  custom: {
    50: '#ccca71',
    500: '#b1b52e',
    950: '#000000',
  },
}
SCSS
$custom: #b1b52e;
$custom-light: #ccca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b1b52e",
  "rgb": {
    "r": 177,
    "g": 181,
    "b": 46
  },
  "hsl": {
    "h": 61.778,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74646,
    "c": 0.14978,
    "h": 111.3
  },
  "luminance": 0.42592
}

Semantic roles & 50–950 ramp

primary
#B1B52E
secondary
#7A78C7
accent
#45E34A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1B52E

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

Preview Lab → · Contrast checker → · Palette generator →

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