#B5C831#B5C831

#B5C831 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.2% C 0.167 H 116.8°. Best body text is #000000 at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#B5C831
RGBrgb(181, 200, 49)
HSLhsl(68, 61%, 49%)
HSVhsv(68, 76%, 78%)
CMYKcmyk(9.5%, 0%, 75.5%, 21.6%)
CIE-LABlab(76.89, -24.88, 67.88)
CIE-LCHlch(76.89, 72.29, 110.13°)
OKLaboklab(79.23% -0.0753 0.1492)
OKLCHoklch(79.23% 0.167 116.8)
XYZxyz(40.2657, 51.3546, 10.6964)
Luminance0.5135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C831 #4431C8
analogous
#C89031 #B5C831 #6AC831
triadic
#B5C831 #31B5C8 #C831B5
tetradic
#B5C831 #31C890 #4431C8 #C8316A
square
#B5C831 #31C890 #4431C8 #C8316A
split-complementary
#B5C831 #316AC8 #9031C8
monochromatic
#5C6619 #899725 #B5C831 #C8D85F #D9E490

Accessibility & contrast

On white

1.86
#B5C831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.27
#B5C831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C831
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C831#FFFFFF#000000##000000
##B5C8311.001.8611.2711.27
#FFFFFF1.861.0021.0021.00
#00000011.2721.001.001.00
##00000011.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BD09
Deuteranopia (green-blind)
#D4BF3F
Tritanopia (blue-blind)
#C1BDAC
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b5c831;
/* rgb */ color: rgb(181, 200, 49);
/* oklch */ color: oklch(79.2% 0.167 116.8);
Tailwind
colors: {
  custom: {
    50: '#cfd875',
    500: '#b5c831',
    950: '#000000',
  },
}
SCSS
$custom: #b5c831;
$custom-light: #cfd875;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c831",
  "rgb": {
    "r": 181,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 67.55,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.7923,
    "c": 0.16715,
    "h": 116.8
  },
  "luminance": 0.51354
}

Semantic roles & 50–950 ramp

primary
#B5C831
secondary
#362D70
accent
#44E458
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #B5C831

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

Preview Lab → · Contrast checker → · Palette generator →

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