#B151B2#B151B2

#B151B2 is a mid, vivid purple. Relative luminance 0.184; OKLCH L 59.1% C 0.173 H 327.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B151B2
RGBrgb(177, 81, 178)
HSLhsl(299, 39%, 51%)
HSVhsv(299, 54%, 70%)
CMYKcmyk(0.6%, 54.5%, 0%, 30.2%)
CIE-LABlab(50.03, 52.40, -34.16)
CIE-LCHlch(50.03, 62.55, 326.89°)
OKLaboklab(59.12% 0.1454 -0.094)
OKLCHoklch(59.12% 0.173 327.1)
XYZxyz(29.1093, 18.4480, 44.1384)
Luminance0.1845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151B2 #52B251
analogous
#8051B2 #B151B2 #B25182
triadic
#B151B2 #B2B151 #51B2B1
tetradic
#B151B2 #B28051 #52B251 #5182B2
square
#B151B2 #B28051 #52B251 #5182B2
split-complementary
#B151B2 #82B251 #51B280
monochromatic
#5E2A5F #883D89 #B151B2 #C47BC5 #D7A6D8

Accessibility & contrast

On white

4.48
#B151B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#B151B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151B2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151B2#FFFFFF#000000##000000
##B151B21.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#476FB5
Deuteranopia (green-blind)
#657BAF
Tritanopia (blue-blind)
#B65C7A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b151b2;
/* rgb */ color: rgb(177, 81, 178);
/* oklch */ color: oklch(59.1% 0.173 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb87c9',
    500: '#b151b2',
    950: '#000000',
  },
}
SCSS
$custom: #b151b2;
$custom-light: #cb87c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b151b2",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 299.381,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59119,
    "c": 0.17312,
    "h": 327.1
  },
  "luminance": 0.18446
}

Semantic roles & 50–950 ramp

primary
#B151B2
secondary
#9AC59A
accent
#CF595A
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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