#B151C2#B151C2

#B151C2 is a mid, vivid purple. Relative luminance 0.191; OKLCH L 60.0% C 0.188 H 321.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B151C2
RGBrgb(177, 81, 194)
HSLhsl(291, 48%, 54%)
HSVhsv(291, 58%, 76%)
CMYKcmyk(8.8%, 58.2%, 0%, 23.9%)
CIE-LABlab(50.84, 55.38, -42.19)
CIE-LCHlch(50.84, 69.62, 322.70°)
OKLaboklab(59.97% 0.1469 -0.1172)
OKLCHoklch(59.97% 0.188 321.4)
XYZxyz(30.8104, 19.1285, 53.0977)
Luminance0.1913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151C2 #62C251
analogous
#7951C2 #B151C2 #C2519B
triadic
#B151C2 #C2B151 #51C2B1
tetradic
#B151C2 #C27951 #62C251 #519BC2
square
#B151C2 #C27951 #62C251 #519BC2
split-complementary
#B151C2 #9BC251 #51C279
monochromatic
#662871 #8F379E #B151C2 #C57ED2 #DAACE2

Accessibility & contrast

On white

4.35
#B151C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#B151C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151C2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151C2#FFFFFF#000000##000000
##B151C21.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B72C6
Deuteranopia (green-blind)
#5D7DBF
Tritanopia (blue-blind)
#B36282
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b151c2;
/* rgb */ color: rgb(177, 81, 194);
/* oklch */ color: oklch(60.0% 0.188 321.4);
Tailwind
colors: {
  custom: {
    50: '#cb87d5',
    500: '#b151c2',
    950: '#000000',
  },
}
SCSS
$custom: #b151c2;
$custom-light: #cb87d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b151c2",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 290.973,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59967,
    "c": 0.18791,
    "h": 321.4
  },
  "luminance": 0.19127
}

Semantic roles & 50–950 ramp

primary
#B151C2
secondary
#A7D09F
accent
#D85065
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #B151C2

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

Preview Lab → · Contrast checker → · Palette generator →

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