#B152C4#B152C4

#B152C4 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.2% C 0.188 H 320.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B152C4
RGBrgb(177, 82, 196)
HSLhsl(290, 49%, 55%)
HSVhsv(290, 58%, 77%)
CMYKcmyk(9.7%, 58.2%, 0%, 23.1%)
CIE-LABlab(51.12, 55.29, -42.90)
CIE-LCHlch(51.12, 69.98, 322.19°)
OKLaboklab(60.2% 0.1457 -0.1193)
OKLCHoklch(60.2% 0.188 320.7)
XYZxyz(31.1114, 19.3686, 54.3136)
Luminance0.1937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152C4 #65C452
analogous
#7852C4 #B152C4 #C4529E
triadic
#B152C4 #C4B152 #52C4B1
tetradic
#B152C4 #C47852 #65C452 #529EC4
square
#B152C4 #C47852 #65C452 #529EC4
split-complementary
#B152C4 #9EC452 #52C478
monochromatic
#672874 #9037A2 #B152C4 #C680D4 #DAADE3

Accessibility & contrast

On white

4.31
#B152C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#B152C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152C4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152C4#FFFFFF#000000##000000
##B152C41.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A73C8
Deuteranopia (green-blind)
#5D7DC1
Tritanopia (blue-blind)
#B26383
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b152c4;
/* rgb */ color: rgb(177, 82, 196);
/* oklch */ color: oklch(60.2% 0.188 320.7);
Tailwind
colors: {
  custom: {
    50: '#cb88d6',
    500: '#b152c4',
    950: '#000000',
  },
}
SCSS
$custom: #b152c4;
$custom-light: #cb88d6;
$custom-dark: #000000;
JSON
{
  "hex": "#b152c4",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 290,
    "s": 49.138,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60204,
    "c": 0.18832,
    "h": 320.7
  },
  "luminance": 0.19367
}

Semantic roles & 50–950 ramp

primary
#B152C4
secondary
#A9D1A1
accent
#D94F66
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #B152C4

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

Preview Lab → · Contrast checker → · Palette generator →

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