#B152BA#B152BA

#B152BA is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.7% C 0.179 H 324.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B152BA
RGBrgb(177, 82, 186)
HSLhsl(295, 43%, 53%)
HSVhsv(295, 56%, 73%)
CMYKcmyk(4.8%, 55.9%, 0%, 27.1%)
CIE-LABlab(50.60, 53.39, -37.93)
CIE-LCHlch(50.60, 65.49, 324.61°)
OKLaboklab(59.66% 0.1449 -0.1049)
OKLCHoklch(59.66% 0.179 324.1)
XYZxyz(30.0109, 18.9284, 48.5176)
Luminance0.1893 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152BA #5BBA52
analogous
#7D52BA #B152BA #BA528F
triadic
#B152BA #BAB152 #52BAB1
tetradic
#B152BA #BA7D52 #5BBA52 #528FBA
square
#B152BA #BA7D52 #5BBA52 #528FBA
split-complementary
#B152BA #8FBA52 #52BA7D
monochromatic
#632A68 #8C3B94 #B152BA #C57ECB #D8AADD

Accessibility & contrast

On white

4.39
#B152BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#B152BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152BA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152BA#FFFFFF#000000##000000
##B152BA1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4271BD
Deuteranopia (green-blind)
#627CB7
Tritanopia (blue-blind)
#B4607E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b152ba;
/* rgb */ color: rgb(177, 82, 186);
/* oklch */ color: oklch(59.7% 0.179 324.1);
Tailwind
colors: {
  custom: {
    50: '#cb87cf',
    500: '#b152ba',
    950: '#000000',
  },
}
SCSS
$custom: #b152ba;
$custom-light: #cb87cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b152ba",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 294.808,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.59663,
    "c": 0.17889,
    "h": 324.1
  },
  "luminance": 0.18927
}

Semantic roles & 50–950 ramp

primary
#B152BA
secondary
#A1CA9D
accent
#D35560
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B152BA

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

Preview Lab → · Contrast checker → · Palette generator →

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