#B151C8#B151C8

#B151C8 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.3% C 0.194 H 319.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B151C8
RGBrgb(177, 81, 200)
HSLhsl(288, 52%, 55%)
HSVhsv(288, 60%, 78%)
CMYKcmyk(11.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(51.16, 56.54, -45.14)
CIE-LCHlch(51.16, 72.35, 321.40°)
OKLaboklab(60.3% 0.1472 -0.1258)
OKLCHoklch(60.3% 0.194 319.5)
XYZxyz(31.4979, 19.4035, 56.7185)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151C8 #68C851
analogous
#7551C8 #B151C8 #C851A4
triadic
#B151C8 #C8B151 #51C8B1
tetradic
#B151C8 #C87551 #68C851 #51A4C8
square
#B151C8 #C87551 #68C851 #51A4C8
split-complementary
#B151C8 #A4C851 #51C875
monochromatic
#692679 #9135A7 #B151C8 #C680D7 #DBAEE5

Accessibility & contrast

On white

4.30
#B151C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#B151C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151C8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151C8#FFFFFF#000000##000000
##B151C81.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3573CC
Deuteranopia (green-blind)
#597DC5
Tritanopia (blue-blind)
#B26485
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b151c8;
/* rgb */ color: rgb(177, 81, 200);
/* oklch */ color: oklch(60.3% 0.194 319.5);
Tailwind
colors: {
  custom: {
    50: '#cb87d9',
    500: '#b151c8',
    950: '#000000',
  },
}
SCSS
$custom: #b151c8;
$custom-light: #cb87d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b151c8",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 288.403,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60303,
    "c": 0.19361,
    "h": 319.5
  },
  "luminance": 0.19402
}

Semantic roles & 50–950 ramp

primary
#B151C8
secondary
#ABD3A1
accent
#DB4C68
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C15
muted
#827D83

Preview Lab

Preview with #B151C8

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

Preview Lab → · Contrast checker → · Palette generator →

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