#B152CF#B152CF

#B152CF is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.8% C 0.199 H 317.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B152CF
RGBrgb(177, 82, 207)
HSLhsl(286, 57%, 57%)
HSVhsv(286, 60%, 81%)
CMYKcmyk(14.5%, 60.4%, 0%, 18.8%)
CIE-LABlab(51.71, 57.46, -48.27)
CIE-LCHlch(51.71, 75.04, 319.97°)
OKLaboklab(60.83% 0.1461 -0.135)
OKLCHoklch(60.83% 0.199 317.3)
XYZxyz(32.4096, 19.8879, 61.1509)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152CF #70CF52
analogous
#7352CF #B152CF #CF52AF
triadic
#B152CF #CFB152 #52CFB1
tetradic
#B152CF #CF7352 #70CF52 #52AFCF
square
#B152CF #CF7352 #70CF52 #52AFCF
split-complementary
#B152CF #AFCF52 #52CF73
monochromatic
#6C2482 #9331B2 #B152CF #C782DC #DCB2EA

Accessibility & contrast

On white

4.22
#B152CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#B152CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152CF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152CF#FFFFFF#000000##000000
##B152CF1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F75D3
Deuteranopia (green-blind)
#557ECC
Tritanopia (blue-blind)
#B06789
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b152cf;
/* rgb */ color: rgb(177, 82, 207);
/* oklch */ color: oklch(60.8% 0.199 317.3);
Tailwind
colors: {
  custom: {
    50: '#cb88de',
    500: '#b152cf',
    950: '#000000',
  },
}
SCSS
$custom: #b152cf;
$custom-light: #cb88de;
$custom-dark: #000000;
JSON
{
  "hex": "#b152cf",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 285.6,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.6083,
    "c": 0.19892,
    "h": 317.3
  },
  "luminance": 0.19887
}

Semantic roles & 50–950 ramp

primary
#B152CF
secondary
#B1D8A5
accent
#E0486C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B152CF

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

Preview Lab → · Contrast checker → · Palette generator →

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