#B152CE#B152CE

#B152CE is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.8% C 0.198 H 317.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B152CE
RGBrgb(177, 82, 206)
HSLhsl(286, 56%, 56%)
HSVhsv(286, 60%, 81%)
CMYKcmyk(14.1%, 60.2%, 0%, 19.2%)
CIE-LABlab(51.65, 57.26, -47.78)
CIE-LCHlch(51.65, 74.58, 320.15°)
OKLaboklab(60.77% 0.1461 -0.1335)
OKLCHoklch(60.77% 0.198 317.6)
XYZxyz(32.2878, 19.8392, 60.5091)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152CE #6FCE52
analogous
#7352CE #B152CE #CE52AD
triadic
#B152CE #CEB152 #52CEB1
tetradic
#B152CE #CE7352 #6FCE52 #52ADCE
square
#B152CE #CE7352 #6FCE52 #52ADCE
split-complementary
#B152CE #ADCE52 #52CE73
monochromatic
#6B2581 #9332B1 #B152CE #C782DC #DCB1E9

Accessibility & contrast

On white

4.23
#B152CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#B152CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152CE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152CE#FFFFFF#000000##000000
##B152CE1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3075D2
Deuteranopia (green-blind)
#567ECB
Tritanopia (blue-blind)
#B06788
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b152ce;
/* rgb */ color: rgb(177, 82, 206);
/* oklch */ color: oklch(60.8% 0.198 317.6);
Tailwind
colors: {
  custom: {
    50: '#cb88dd',
    500: '#b152ce',
    950: '#000000',
  },
}
SCSS
$custom: #b152ce;
$custom-light: #cb88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b152ce",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 285.968,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60772,
    "c": 0.19796,
    "h": 317.6
  },
  "luminance": 0.19838
}

Semantic roles & 50–950 ramp

primary
#B152CE
secondary
#B0D7A4
accent
#DF496C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B152CE

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

Preview Lab → · Contrast checker → · Palette generator →

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