#B5C151#B5C151

#B5C151 is a light, vivid yellow. Relative luminance 0.486; OKLCH L 77.9% C 0.137 H 114.7°. Best body text is #000000 at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#B5C151
RGBrgb(181, 193, 81)
HSLhsl(66, 47%, 54%)
HSVhsv(66, 58%, 76%)
CMYKcmyk(6.2%, 0%, 58%, 24.3%)
CIE-LABlab(75.18, -19.52, 53.75)
CIE-LCHlch(75.18, 57.18, 109.96°)
OKLaboklab(77.93% -0.0573 0.1242)
OKLCHoklch(77.93% 0.137 114.7)
XYZxyz(39.6120, 48.5584, 15.0690)
Luminance0.4856 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C151 #5D51C1
analogous
#C19551 #B5C151 #7DC151
triadic
#B5C151 #51B5C1 #C151B5
tetradic
#B5C151 #51C195 #5D51C1 #C1517D
square
#B5C151 #51C195 #5D51C1 #C1517D
split-complementary
#B5C151 #517DC1 #9551C1
monochromatic
#687028 #929D38 #B5C151 #C8D17E #DBE1AB

Accessibility & contrast

On white

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

On black

10.71
#B5C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C151
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C151#FFFFFF#000000##000000
##B5C1511.001.9610.7110.71
#FFFFFF1.961.0021.0021.00
#00000010.7121.001.001.00
##00000010.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB845
Deuteranopia (green-blind)
#CDBA58
Tritanopia (blue-blind)
#C0B7A9
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b5c151;
/* rgb */ color: rgb(181, 193, 81);
/* oklch */ color: oklch(77.9% 0.137 114.7);
Tailwind
colors: {
  custom: {
    50: '#ced386',
    500: '#b5c151',
    950: '#000000',
  },
}
SCSS
$custom: #b5c151;
$custom-light: #ced386;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c151",
  "rgb": {
    "r": 181,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 66.429,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.77925,
    "c": 0.1368,
    "h": 114.7
  },
  "luminance": 0.48558
}

Semantic roles & 50–950 ramp

primary
#B5C151
secondary
#A49FCF
accent
#51D75F
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#14140B
muted
#82827C

Preview Lab

Preview with #B5C151

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

Preview Lab → · Contrast checker → · Palette generator →

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