#B152CB#B152CB

#B152CB is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.6% C 0.195 H 318.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B152CB
RGBrgb(177, 82, 203)
HSLhsl(287, 54%, 56%)
HSVhsv(287, 60%, 80%)
CMYKcmyk(12.8%, 59.6%, 0%, 20.4%)
CIE-LABlab(51.49, 56.66, -46.33)
CIE-LCHlch(51.49, 73.19, 320.73°)
OKLaboklab(60.6% 0.146 -0.1293)
OKLCHoklch(60.6% 0.195 318.5)
XYZxyz(31.9268, 19.6948, 58.6081)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152CB #6CCB52
analogous
#7452CB #B152CB #CB52A9
triadic
#B152CB #CBB152 #52CBB1
tetradic
#B152CB #CB7452 #6CCB52 #52A9CB
square
#B152CB #CB7452 #6CCB52 #52A9CB
split-complementary
#B152CB #A9CB52 #52CB74
monochromatic
#6A267D #9234AC #B152CB #C681D9 #DBB0E7

Accessibility & contrast

On white

4.25
#B152CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#B152CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152CB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152CB#FFFFFF#000000##000000
##B152CB1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CF
Deuteranopia (green-blind)
#587EC8
Tritanopia (blue-blind)
#B16687
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b152cb;
/* rgb */ color: rgb(177, 82, 203);
/* oklch */ color: oklch(60.6% 0.195 318.5);
Tailwind
colors: {
  custom: {
    50: '#cb88db',
    500: '#b152cb',
    950: '#000000',
  },
}
SCSS
$custom: #b152cb;
$custom-light: #cb88db;
$custom-dark: #000000;
JSON
{
  "hex": "#b152cb",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 287.107,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60599,
    "c": 0.19505,
    "h": 318.5
  },
  "luminance": 0.19693
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B152CB

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

Preview Lab → · Contrast checker → · Palette generator →

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