#B151A8#B151A8

#B151A8 is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.6% C 0.164 H 331.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B151A8
RGBrgb(177, 81, 168)
HSLhsl(306, 38%, 51%)
HSVhsv(306, 54%, 69%)
CMYKcmyk(0%, 54.2%, 5.1%, 30.6%)
CIE-LABlab(49.57, 50.62, -29.04)
CIE-LCHlch(49.57, 58.36, 330.16°)
OKLaboklab(58.63% 0.1439 -0.0793)
OKLCHoklch(58.63% 0.164 331.1)
XYZxyz(28.1416, 18.0610, 39.0421)
Luminance0.1806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151A8 #51B15A
analogous
#8A51B1 #B151A8 #B15178
triadic
#B151A8 #A8B151 #51A8B1
tetradic
#B151A8 #B18A51 #51B15A #5178B1
square
#B151A8 #B18A51 #51B15A #5178B1
split-complementary
#B151A8 #78B151 #51B18A
monochromatic
#5E2A59 #883D81 #B151A8 #C47BBD #D7A6D2

Accessibility & contrast

On white

4.55
#B151A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#B151A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151A8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151A8#FFFFFF#000000##000000
##B151A81.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6DAB
Deuteranopia (green-blind)
#6A7BA5
Tritanopia (blue-blind)
#B75975
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b151a8;
/* rgb */ color: rgb(177, 81, 168);
/* oklch */ color: oklch(58.6% 0.164 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb86c2',
    500: '#b151a8',
    950: '#000000',
  },
}
SCSS
$custom: #b151a8;
$custom-light: #cb86c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b151a8",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 305.625,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58625,
    "c": 0.16433,
    "h": 331.1
  },
  "luminance": 0.18059
}

Semantic roles & 50–950 ramp

primary
#B151A8
secondary
#9AC49E
accent
#CE655A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B151A8

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

Preview Lab → · Contrast checker → · Palette generator →

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