#B5C331#B5C331

#B5C331 is a light, vivid yellow. Relative luminance 0.491; OKLCH L 78.1% C 0.162 H 115.1°. Best body text is #000000 at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#B5C331
RGBrgb(181, 195, 49)
HSLhsl(66, 60%, 48%)
HSVhsv(66, 75%, 76%)
CMYKcmyk(7.2%, 0%, 74.9%, 23.5%)
CIE-LABlab(75.50, -22.44, 66.58)
CIE-LCHlch(75.50, 70.26, 108.63°)
OKLaboklab(78.11% -0.0685 0.1465)
OKLCHoklch(78.11% 0.162 115.1)
XYZxyz(39.1266, 49.0764, 10.3167)
Luminance0.4908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C331 #3F31C3
analogous
#C38831 #B5C331 #6CC331
triadic
#B5C331 #31B5C3 #C331B5
tetradic
#B5C331 #31C388 #3F31C3 #C3316C
square
#B5C331 #31C388 #3F31C3 #C3316C
split-complementary
#B5C331 #316CC3 #8831C3
monochromatic
#5A6118 #889225 #B5C331 #CAD65B #DAE28C

Accessibility & contrast

On white

1.94
#B5C331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.82
#B5C331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C331
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C331#FFFFFF#000000##000000
##B5C3311.001.9410.8210.82
#FFFFFF1.941.0021.0021.00
#00000010.8221.001.001.00
##00000010.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B90E
Deuteranopia (green-blind)
#D0BB3E
Tritanopia (blue-blind)
#C1B7A7
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #b5c331;
/* rgb */ color: rgb(181, 195, 49);
/* oklch */ color: oklch(78.1% 0.162 115.1);
Tailwind
colors: {
  custom: {
    50: '#cfd574',
    500: '#b5c331',
    950: '#000000',
  },
}
SCSS
$custom: #b5c331;
$custom-light: #cfd574;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c331",
  "rgb": {
    "r": 181,
    "g": 195,
    "b": 49
  },
  "hsl": {
    "h": 65.753,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.7811,
    "c": 0.16173,
    "h": 115.1
  },
  "luminance": 0.49076
}

Semantic roles & 50–950 ramp

primary
#B5C331
secondary
#8A83CC
accent
#45E354
background
#FDFDF7
surface
#FAFAED
border
#D3D3C8
text
#141409
muted
#83837B

Preview Lab

Preview with #B5C331

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

Preview Lab → · Contrast checker → · Palette generator →

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