#B152CC#B152CC

#B152CC is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.7% C 0.196 H 318.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B152CC
RGBrgb(177, 82, 204)
HSLhsl(287, 54%, 56%)
HSVhsv(287, 60%, 80%)
CMYKcmyk(13.2%, 59.8%, 0%, 20%)
CIE-LABlab(51.54, 56.86, -46.81)
CIE-LCHlch(51.54, 73.65, 320.54°)
OKLaboklab(60.66% 0.1461 -0.1307)
OKLCHoklch(60.66% 0.196 318.2)
XYZxyz(32.0463, 19.7426, 59.2377)
Luminance0.1974 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152CC #6DCC52
analogous
#7452CC #B152CC #CC52AA
triadic
#B152CC #CCB152 #52CCB1
tetradic
#B152CC #CC7452 #6DCC52 #52AACC
square
#B152CC #CC7452 #6DCC52 #52AACC
split-complementary
#B152CC #AACC52 #52CC74
monochromatic
#6B257E #9333AE #B152CC #C681DA #DCB1E8

Accessibility & contrast

On white

4.24
#B152CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#B152CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152CC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152CC#FFFFFF#000000##000000
##B152CC1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3275D0
Deuteranopia (green-blind)
#587EC9
Tritanopia (blue-blind)
#B16687
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b152cc;
/* rgb */ color: rgb(177, 82, 204);
/* oklch */ color: oklch(60.7% 0.196 318.2);
Tailwind
colors: {
  custom: {
    50: '#cb88dc',
    500: '#b152cc',
    950: '#000000',
  },
}
SCSS
$custom: #b152cc;
$custom-light: #cb88dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b152cc",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 286.721,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60656,
    "c": 0.19601,
    "h": 318.2
  },
  "luminance": 0.19741
}

Semantic roles & 50–950 ramp

primary
#B152CC
secondary
#AFD6A4
accent
#DE4A6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B152CC

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

Preview Lab → · Contrast checker → · Palette generator →

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