#B151A9#B151A9

#B151A9 is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.7% C 0.165 H 330.7°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B151A9
RGBrgb(177, 81, 169)
HSLhsl(305, 38%, 51%)
HSVhsv(305, 54%, 69%)
CMYKcmyk(0%, 54.2%, 4.5%, 30.6%)
CIE-LABlab(49.62, 50.80, -29.55)
CIE-LCHlch(49.62, 58.77, 329.81°)
OKLaboklab(58.67% 0.1441 -0.0808)
OKLCHoklch(58.67% 0.165 330.7)
XYZxyz(28.2351, 18.0984, 39.5346)
Luminance0.1810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151A9 #51B159
analogous
#8951B1 #B151A9 #B15179
triadic
#B151A9 #A9B151 #51A9B1
tetradic
#B151A9 #B18951 #51B159 #5179B1
square
#B151A9 #B18951 #51B159 #5179B1
split-complementary
#B151A9 #79B151 #51B189
monochromatic
#5E2A59 #883D82 #B151A9 #C47BBE #D7A6D3

Accessibility & contrast

On white

4.55
#B151A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B151A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151A9
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151A9#FFFFFF#000000##000000
##B151A91.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAC
Deuteranopia (green-blind)
#697BA6
Tritanopia (blue-blind)
#B75976
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b151a9;
/* rgb */ color: rgb(177, 81, 169);
/* oklch */ color: oklch(58.7% 0.165 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb86c3',
    500: '#b151a9',
    950: '#000000',
  },
}
SCSS
$custom: #b151a9;
$custom-light: #cb86c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b151a9",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 169
  },
  "hsl": {
    "h": 305,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58673,
    "c": 0.16519,
    "h": 330.7
  },
  "luminance": 0.18097
}

Semantic roles & 50–950 ramp

primary
#B151A9
secondary
#9AC49D
accent
#CE635A
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140B12
muted
#827C81

Preview Lab

Preview with #B151A9

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

Preview Lab → · Contrast checker → · Palette generator →

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