#B151A5#B151A5

#B151A5 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.5% C 0.162 H 332.4°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B151A5
RGBrgb(177, 81, 165)
HSLhsl(308, 38%, 51%)
HSVhsv(308, 54%, 69%)
CMYKcmyk(0%, 54.2%, 6.8%, 30.6%)
CIE-LABlab(49.44, 50.11, -27.48)
CIE-LCHlch(49.44, 57.15, 331.26°)
OKLaboklab(58.48% 0.1434 -0.0749)
OKLCHoklch(58.48% 0.162 332.4)
XYZxyz(27.8654, 17.9505, 37.5871)
Luminance0.1795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151A5 #51B15D
analogous
#8D51B1 #B151A5 #B15175
triadic
#B151A5 #A5B151 #51A5B1
tetradic
#B151A5 #B18D51 #51B15D #5175B1
square
#B151A5 #B18D51 #51B15D #5175B1
split-complementary
#B151A5 #75B151 #51B18D
monochromatic
#5E2A57 #883D7F #B151A5 #C47BBB #D7A6D1

Accessibility & contrast

On white

4.58
#B151A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#B151A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151A5
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151A5#FFFFFF#000000##000000
##B151A51.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6DA8
Deuteranopia (green-blind)
#6B7AA2
Tritanopia (blue-blind)
#B85874
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b151a5;
/* rgb */ color: rgb(177, 81, 165);
/* oklch */ color: oklch(58.5% 0.162 332.4);
Tailwind
colors: {
  custom: {
    50: '#cb86c0',
    500: '#b151a5',
    950: '#000000',
  },
}
SCSS
$custom: #b151a5;
$custom-light: #cb86c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b151a5",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 307.5,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58483,
    "c": 0.16178,
    "h": 332.4
  },
  "luminance": 0.17949
}

Semantic roles & 50–950 ramp

primary
#B151A5
secondary
#9AC49F
accent
#CE685A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B151A5

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

Preview Lab → · Contrast checker → · Palette generator →

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