#B152B2#B152B2

#B152B2 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.3% C 0.172 H 327.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B152B2
RGBrgb(177, 82, 178)
HSLhsl(299, 38%, 51%)
HSVhsv(299, 54%, 70%)
CMYKcmyk(0.6%, 53.9%, 0%, 30.2%)
CIE-LABlab(50.21, 51.92, -33.89)
CIE-LCHlch(50.21, 62.00, 326.87°)
OKLaboklab(59.25% 0.144 -0.0932)
OKLCHoklch(59.25% 0.172 327.1)
XYZxyz(29.1841, 18.5977, 44.1634)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152B2 #53B252
analogous
#8152B2 #B152B2 #B25283
triadic
#B152B2 #B2B152 #52B2B1
tetradic
#B152B2 #B28152 #53B252 #5283B2
square
#B152B2 #B28152 #53B252 #5283B2
split-complementary
#B152B2 #83B252 #52B281
monochromatic
#5F2A5F #893D8A #B152B2 #C47CC5 #D7A7D8

Accessibility & contrast

On white

4.45
#B152B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#B152B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152B2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152B2#FFFFFF#000000##000000
##B152B21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4870B5
Deuteranopia (green-blind)
#667CAF
Tritanopia (blue-blind)
#B65D7A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b152b2;
/* rgb */ color: rgb(177, 82, 178);
/* oklch */ color: oklch(59.3% 0.172 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb87c9',
    500: '#b152b2',
    950: '#000000',
  },
}
SCSS
$custom: #b152b2;
$custom-light: #cb87c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b152b2",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 299.375,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5925,
    "c": 0.17156,
    "h": 327.1
  },
  "luminance": 0.18596
}

Semantic roles & 50–950 ramp

primary
#B152B2
secondary
#9BC59B
accent
#CE595B
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B152B2

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

Preview Lab → · Contrast checker → · Palette generator →

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