#B152CA#B152CA

#B152CA is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.5% C 0.194 H 318.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B152CA
RGBrgb(177, 82, 202)
HSLhsl(288, 53%, 56%)
HSVhsv(288, 59%, 79%)
CMYKcmyk(12.4%, 59.4%, 0%, 20.8%)
CIE-LABlab(51.44, 56.47, -45.84)
CIE-LCHlch(51.44, 72.73, 320.93°)
OKLaboklab(60.54% 0.146 -0.1279)
OKLCHoklch(60.54% 0.194 318.8)
XYZxyz(31.8080, 19.6473, 57.9825)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152CA #6BCA52
analogous
#7552CA #B152CA #CA52A7
triadic
#B152CA #CAB152 #52CAB1
tetradic
#B152CA #CA7552 #6BCA52 #52A7CA
square
#B152CA #CA7552 #6BCA52 #52A7CA
split-complementary
#B152CA #A7CA52 #52CA75
monochromatic
#6A267C #9234AB #B152CA #C681D8 #DBB0E7

Accessibility & contrast

On white

4.26
#B152CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#B152CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152CA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152CA#FFFFFF#000000##000000
##B152CA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3474CE
Deuteranopia (green-blind)
#597EC7
Tritanopia (blue-blind)
#B16586
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b152ca;
/* rgb */ color: rgb(177, 82, 202);
/* oklch */ color: oklch(60.5% 0.194 318.8);
Tailwind
colors: {
  custom: {
    50: '#cb88db',
    500: '#b152ca',
    950: '#000000',
  },
}
SCSS
$custom: #b152ca;
$custom-light: #cb88db;
$custom-dark: #000000;
JSON
{
  "hex": "#b152ca",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 287.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60542,
    "c": 0.19408,
    "h": 318.8
  },
  "luminance": 0.19646
}

Semantic roles & 50–950 ramp

primary
#B152CA
secondary
#ADD5A3
accent
#DD4B6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B152CA

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

Preview Lab → · Contrast checker → · Palette generator →

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