#B5CF31#B5CF31

#B5CF31 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 80.8% C 0.175 H 118.9°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#B5CF31
RGBrgb(181, 207, 49)
HSLhsl(70, 62%, 50%)
HSVhsv(70, 76%, 81%)
CMYKcmyk(12.6%, 0%, 76.3%, 18.8%)
CIE-LABlab(78.85, -28.23, 69.69)
CIE-LCHlch(78.85, 75.19, 112.05°)
OKLaboklab(80.81% -0.0845 0.1531)
OKLCHoklch(80.81% 0.175 118.9)
XYZxyz(41.9242, 54.6715, 11.2492)
Luminance0.5467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5CF31 #4B31CF
analogous
#CF9A31 #B5CF31 #66CF31
triadic
#B5CF31 #31B5CF #CF31B5
tetradic
#B5CF31 #31CF9A #4B31CF #CF3166
square
#B5CF31 #31CF9A #4B31CF #CF3166
split-complementary
#B5CF31 #3166CF #9A31CF
monochromatic
#5F6C19 #8A9E25 #B5CF31 #C7DB63 #D9E694

Accessibility & contrast

On white

1.76
#B5CF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#B5CF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5CF31
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5CF31#FFFFFF#000000##000000
##B5CF311.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC302
Deuteranopia (green-blind)
#DAC440
Tritanopia (blue-blind)
#C0C4B2
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #b5cf31;
/* rgb */ color: rgb(181, 207, 49);
/* oklch */ color: oklch(80.8% 0.175 118.9);
Tailwind
colors: {
  custom: {
    50: '#cfdd76',
    500: '#b5cf31',
    950: '#000000',
  },
}
SCSS
$custom: #b5cf31;
$custom-light: #cfdd76;
$custom-dark: #000000;
JSON
{
  "hex": "#b5cf31",
  "rgb": {
    "r": 181,
    "g": 207,
    "b": 49
  },
  "hsl": {
    "h": 69.873,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.80805,
    "c": 0.17486,
    "h": 118.9
  },
  "luminance": 0.54671
}

Semantic roles & 50–950 ramp

primary
#B5CF31
secondary
#3A2E76
accent
#43E55D
background
#FEFEFB
surface
#FBFCF1
border
#D4D5CB
text
#141509
muted
#83847D

Preview Lab

Preview with #B5CF31

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

Preview Lab → · Contrast checker → · Palette generator →

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