#B151A2#B151A2

#B151A2 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.3% C 0.159 H 333.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B151A2
RGBrgb(177, 81, 162)
HSLhsl(309, 38%, 51%)
HSVhsv(309, 54%, 69%)
CMYKcmyk(0%, 54.2%, 8.5%, 30.6%)
CIE-LABlab(49.30, 49.60, -25.91)
CIE-LCHlch(49.30, 55.96, 332.41°)
OKLaboklab(58.34% 0.1429 -0.0704)
OKLCHoklch(58.34% 0.159 333.8)
XYZxyz(27.5955, 17.8425, 36.1659)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151A2 #51B160
analogous
#9051B1 #B151A2 #B15172
triadic
#B151A2 #A2B151 #51A2B1
tetradic
#B151A2 #B19051 #51B160 #5172B1
square
#B151A2 #B19051 #51B160 #5172B1
split-complementary
#B151A2 #72B151 #51B190
monochromatic
#5E2A56 #883D7C #B151A2 #C47BB9 #D7A6CF

Accessibility & contrast

On white

4.60
#B151A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#B151A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B151A2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151A2#FFFFFF#000000##FFFFFF
##B151A21.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506CA5
Deuteranopia (green-blind)
#6C7A9F
Tritanopia (blue-blind)
#B85772
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b151a2;
/* rgb */ color: rgb(177, 81, 162);
/* oklch */ color: oklch(58.3% 0.159 333.8);
Tailwind
colors: {
  custom: {
    50: '#cb86bd',
    500: '#b151a2',
    950: '#000000',
  },
}
SCSS
$custom: #b151a2;
$custom-light: #cb86bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b151a2",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 309.375,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58342,
    "c": 0.15929,
    "h": 333.8
  },
  "luminance": 0.17841
}

Semantic roles & 50–950 ramp

primary
#B151A2
secondary
#9AC4A0
accent
#CE6C5A
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B151A2

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

Preview Lab → · Contrast checker → · Palette generator →

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