#B151BA#B151BA

#B151BA is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.5% C 0.180 H 324.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B151BA
RGBrgb(177, 81, 186)
HSLhsl(295, 43%, 52%)
HSVhsv(295, 56%, 73%)
CMYKcmyk(4.8%, 56.5%, 0%, 27.1%)
CIE-LABlab(50.43, 53.87, -38.20)
CIE-LCHlch(50.43, 66.04, 324.65°)
OKLaboklab(59.53% 0.1462 -0.1057)
OKLCHoklch(59.53% 0.18 324.1)
XYZxyz(29.9360, 18.7787, 48.4927)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151BA #5ABA51
analogous
#7C51BA #B151BA #BA518F
triadic
#B151BA #BAB151 #51BAB1
tetradic
#B151BA #BA7C51 #5ABA51 #518FBA
square
#B151BA #BA7C51 #5ABA51 #518FBA
split-complementary
#B151BA #8FBA51 #51BA7C
monochromatic
#622968 #8C3A93 #B151BA #C57DCB #D8A9DD

Accessibility & contrast

On white

4.42
#B151BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#B151BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151BA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151BA#FFFFFF#000000##000000
##B151BA1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4171BD
Deuteranopia (green-blind)
#617CB7
Tritanopia (blue-blind)
#B45F7E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b151ba;
/* rgb */ color: rgb(177, 81, 186);
/* oklch */ color: oklch(59.5% 0.180 324.1);
Tailwind
colors: {
  custom: {
    50: '#cb87cf',
    500: '#b151ba',
    950: '#000000',
  },
}
SCSS
$custom: #b151ba;
$custom-light: #cb87cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b151ba",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 294.857,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59534,
    "c": 0.18042,
    "h": 324.1
  },
  "luminance": 0.18777
}

Semantic roles & 50–950 ramp

primary
#B151BA
secondary
#A0CA9D
accent
#D35560
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B151BA

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

Preview Lab → · Contrast checker → · Palette generator →

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