#B151AF#B151AF

#B151AF is a mid, vivid purple. Relative luminance 0.183; OKLCH L 59.0% C 0.170 H 328.3°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B151AF
RGBrgb(177, 81, 175)
HSLhsl(301, 38%, 51%)
HSVhsv(301, 54%, 69%)
CMYKcmyk(0%, 54.2%, 1.1%, 30.6%)
CIE-LABlab(49.89, 51.86, -32.64)
CIE-LCHlch(49.89, 61.27, 327.82°)
OKLaboklab(58.97% 0.145 -0.0896)
OKLCHoklch(58.97% 0.17 328.3)
XYZxyz(28.8114, 18.3289, 42.5694)
Luminance0.1833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151AF #51B153
analogous
#8351B1 #B151AF #B1517F
triadic
#B151AF #AFB151 #51AFB1
tetradic
#B151AF #B18351 #51B153 #517FB1
square
#B151AF #B18351 #51B153 #517FB1
split-complementary
#B151AF #7FB151 #51B183
monochromatic
#5E2A5D #883D86 #B151AF #C47BC2 #D7A6D6

Accessibility & contrast

On white

4.50
#B151AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#B151AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151AF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151AF#FFFFFF#000000##000000
##B151AF1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#496FB2
Deuteranopia (green-blind)
#677BAC
Tritanopia (blue-blind)
#B65B78
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b151af;
/* rgb */ color: rgb(177, 81, 175);
/* oklch */ color: oklch(59.0% 0.170 328.3);
Tailwind
colors: {
  custom: {
    50: '#cb86c7',
    500: '#b151af',
    950: '#000000',
  },
}
SCSS
$custom: #b151af;
$custom-light: #cb86c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b151af",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 301.25,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58968,
    "c": 0.17044,
    "h": 328.3
  },
  "luminance": 0.18327
}

Semantic roles & 50–950 ramp

primary
#B151AF
secondary
#9AC49A
accent
#CE5C5A
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B151AF

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

Preview Lab → · Contrast checker → · Palette generator →

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