#B5C222#B5C222

#B5C222 is a light, vivid yellow. Relative luminance 0.485; OKLCH L 77.8% C 0.168 H 114.6°. Best body text is #000000 at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#B5C222
RGBrgb(181, 194, 34)
HSLhsl(65, 70%, 45%)
HSVhsv(65, 82%, 76%)
CMYKcmyk(6.7%, 0%, 82.5%, 23.9%)
CIE-LABlab(75.15, -22.51, 70.55)
CIE-LCHlch(75.15, 74.05, 107.70°)
OKLaboklab(77.81% -0.0698 0.1524)
OKLCHoklch(77.81% 0.168 114.6)
XYZxyz(38.6378, 48.5236, 8.8437)
Luminance0.4852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C222 #2F22C2
analogous
#C27F22 #B5C222 #65C222
triadic
#B5C222 #22B5C2 #C222B5
tetradic
#B5C222 #22C27F #2F22C2 #C22265
square
#B5C222 #22C27F #2F22C2 #C22265
split-complementary
#B5C222 #2265C2 #7F22C2
monochromatic
#545A10 #848E19 #B5C222 #D1DE43 #DEE777

Accessibility & contrast

On white

1.96
#B5C222 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.70
#B5C222 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C222
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C222#FFFFFF#000000##000000
##B5C2221.001.9610.7010.70
#FFFFFF1.961.0021.0021.00
#00000010.7021.001.001.00
##00000010.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B800
Deuteranopia (green-blind)
#D0BA33
Tritanopia (blue-blind)
#C1B6A6
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b5c222;
/* rgb */ color: rgb(181, 194, 34);
/* oklch */ color: oklch(77.8% 0.168 114.6);
Tailwind
colors: {
  custom: {
    50: '#cfd46e',
    500: '#b5c222',
    950: '#000000',
  },
}
SCSS
$custom: #b5c222;
$custom-light: #cfd46e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c222",
  "rgb": {
    "r": 181,
    "g": 194,
    "b": 34
  },
  "hsl": {
    "h": 64.875,
    "s": 70.175,
    "l": 44.706
  },
  "oklch": {
    "l": 0.77812,
    "c": 0.16761,
    "h": 114.6
  },
  "luminance": 0.48523
}

Semantic roles & 50–950 ramp

primary
#B5C222
secondary
#7971CF
accent
#3BED49
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B

Preview Lab

Preview with #B5C222

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

Preview Lab → · Contrast checker → · Palette generator →

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