#B152D5#B152D5

#B152D5 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.2% C 0.205 H 315.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B152D5
RGBrgb(177, 82, 213)
HSLhsl(284, 61%, 58%)
HSVhsv(284, 62%, 84%)
CMYKcmyk(16.9%, 61.5%, 0%, 16.5%)
CIE-LABlab(52.05, 58.67, -51.15)
CIE-LCHlch(52.05, 77.84, 318.91°)
OKLaboklab(61.18% 0.1462 -0.1434)
OKLCHoklch(61.18% 0.205 315.6)
XYZxyz(33.1571, 20.1869, 65.0878)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152D5 #76D552
analogous
#6F52D5 #B152D5 #D552B8
triadic
#B152D5 #D5B152 #52D5B1
tetradic
#B152D5 #D56F52 #76D552 #52B8D5
square
#B152D5 #D56F52 #76D552 #52B8D5
split-complementary
#B152D5 #B8D552 #52D56F
monochromatic
#6E228B #952EBC #B152D5 #C783E1 #DDB4ED

Accessibility & contrast

On white

4.17
#B152D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#B152D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152D5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152D5#FFFFFF#000000##000000
##B152D51.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2676D9
Deuteranopia (green-blind)
#517FD2
Tritanopia (blue-blind)
#AF698C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b152d5;
/* rgb */ color: rgb(177, 82, 213);
/* oklch */ color: oklch(61.2% 0.205 315.6);
Tailwind
colors: {
  custom: {
    50: '#cc88e2',
    500: '#b152d5',
    950: '#000000',
  },
}
SCSS
$custom: #b152d5;
$custom-light: #cc88e2;
$custom-dark: #000000;
JSON
{
  "hex": "#b152d5",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 213
  },
  "hsl": {
    "h": 283.511,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61184,
    "c": 0.20478,
    "h": 315.6
  },
  "luminance": 0.20186
}

Semantic roles & 50–950 ramp

primary
#B152D5
secondary
#B6DCA7
accent
#E44470
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B152D5

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

Preview Lab → · Contrast checker → · Palette generator →

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