#B5CC31#B5CC31

#B5CC31 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.1% C 0.172 H 118.0°. Best body text is #000000 at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#B5CC31
RGBrgb(181, 204, 49)
HSLhsl(69, 61%, 50%)
HSVhsv(69, 76%, 80%)
CMYKcmyk(11.3%, 0%, 76%, 20%)
CIE-LABlab(78.01, -26.80, 68.91)
CIE-LCHlch(78.01, 73.94, 111.25°)
OKLaboklab(80.13% -0.0806 0.1514)
OKLCHoklch(80.13% 0.172 118)
XYZxyz(41.2043, 53.2316, 11.0092)
Luminance0.5323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5CC31 #4831CC
analogous
#CC9531 #B5CC31 #68CC31
triadic
#B5CC31 #31B5CC #CC31B5
tetradic
#B5CC31 #31CC95 #4831CC #CC3168
square
#B5CC31 #31CC95 #4831CC #CC3168
split-complementary
#B5CC31 #3168CC #9531CC
monochromatic
#5D6919 #899B25 #B5CC31 #C7D961 #D9E592

Accessibility & contrast

On white

1.80
#B5CC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.65
#B5CC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5CC31
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5CC31#FFFFFF#000000##000000
##B5CC311.001.8011.6511.65
#FFFFFF1.801.0021.0021.00
#00000011.6521.001.001.00
##00000011.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC105
Deuteranopia (green-blind)
#D7C23F
Tritanopia (blue-blind)
#C0C1AF
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #b5cc31;
/* rgb */ color: rgb(181, 204, 49);
/* oklch */ color: oklch(80.1% 0.172 118.0);
Tailwind
colors: {
  custom: {
    50: '#cfdb76',
    500: '#b5cc31',
    950: '#000000',
  },
}
SCSS
$custom: #b5cc31;
$custom-light: #cfdb76;
$custom-dark: #000000;
JSON
{
  "hex": "#b5cc31",
  "rgb": {
    "r": 181,
    "g": 204,
    "b": 49
  },
  "hsl": {
    "h": 68.903,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.80129,
    "c": 0.17153,
    "h": 118
  },
  "luminance": 0.53231
}

Semantic roles & 50–950 ramp

primary
#B5CC31
secondary
#382E73
accent
#43E45B
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141509
muted
#83847D

Preview Lab

Preview with #B5CC31

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

Preview Lab → · Contrast checker → · Palette generator →

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