#B1C21F#B1C21F

#B1C21F is a light, vivid yellow. Relative luminance 0.480; OKLCH L 77.5% C 0.170 H 116.1°. Best body text is #000000 at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#B1C21F
RGBrgb(177, 194, 31)
HSLhsl(66, 72%, 44%)
HSVhsv(66, 84%, 76%)
CMYKcmyk(8.8%, 0%, 84%, 23.9%)
CIE-LABlab(74.84, -24.29, 70.88)
CIE-LCHlch(74.84, 74.92, 108.92°)
OKLaboklab(77.49% -0.0747 0.1528)
OKLCHoklch(77.49% 0.17 116.1)
XYZxyz(37.6717, 48.0302, 8.5823)
Luminance0.4803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1C21F #301FC2
analogous
#C2821F #B1C21F #5FC21F
triadic
#B1C21F #1FB1C2 #C21FB1
tetradic
#B1C21F #1FC282 #301FC2 #C21F5F
square
#B1C21F #1FC282 #301FC2 #C21F5F
split-complementary
#B1C21F #1F5FC2 #821FC2
monochromatic
#51580E #818D17 #B1C21F #CFE03E #DCE973

Accessibility & contrast

On white

1.98
#B1C21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.61
#B1C21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1C21F
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1C21F#FFFFFF#000000##000000
##B1C21F1.001.9810.6110.61
#FFFFFF1.981.0021.0021.00
#00000010.6121.001.001.00
##00000010.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B700
Deuteranopia (green-blind)
#CFB931
Tritanopia (blue-blind)
#BDB6A6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #b1c21f;
/* rgb */ color: rgb(177, 194, 31);
/* oklch */ color: oklch(77.5% 0.170 116.1);
Tailwind
colors: {
  custom: {
    50: '#ccd46d',
    500: '#b1c21f',
    950: '#000000',
  },
}
SCSS
$custom: #b1c21f;
$custom-light: #ccd46d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1c21f",
  "rgb": {
    "r": 177,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 66.258,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.77485,
    "c": 0.17005,
    "h": 116.1
  },
  "luminance": 0.4803
}

Semantic roles & 50–950 ramp

primary
#B1C21F
secondary
#786DCF
accent
#39EF4C
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B

Preview Lab

Preview with #B1C21F

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

Preview Lab → · Contrast checker → · Palette generator →

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