#B152D2#B152D2

#B152D2 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.0% C 0.202 H 316.4°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B152D2
RGBrgb(177, 82, 210)
HSLhsl(285, 59%, 57%)
HSVhsv(285, 61%, 82%)
CMYKcmyk(15.7%, 61%, 0%, 17.6%)
CIE-LABlab(51.88, 58.06, -49.72)
CIE-LCHlch(51.88, 76.44, 319.43°)
OKLaboklab(61.01% 0.1462 -0.1392)
OKLCHoklch(61.01% 0.202 316.4)
XYZxyz(32.7799, 20.0360, 63.1009)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152D2 #73D252
analogous
#7152D2 #B152D2 #D252B3
triadic
#B152D2 #D2B152 #52D2B1
tetradic
#B152D2 #D27152 #73D252 #52B3D2
square
#B152D2 #D27152 #73D252 #52B3D2
split-complementary
#B152D2 #B3D252 #52D271
monochromatic
#6D2387 #9430B7 #B152D2 #C783DF #DDB3EB

Accessibility & contrast

On white

4.19
#B152D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#B152D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152D2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152D2#FFFFFF#000000##000000
##B152D21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B76D6
Deuteranopia (green-blind)
#537FCF
Tritanopia (blue-blind)
#AF688B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b152d2;
/* rgb */ color: rgb(177, 82, 210);
/* oklch */ color: oklch(61.0% 0.202 316.4);
Tailwind
colors: {
  custom: {
    50: '#cb88e0',
    500: '#b152d2',
    950: '#000000',
  },
}
SCSS
$custom: #b152d2;
$custom-light: #cb88e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b152d2",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 284.531,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61006,
    "c": 0.20185,
    "h": 316.4
  },
  "luminance": 0.20035
}

Semantic roles & 50–950 ramp

primary
#B152D2
secondary
#B3DAA6
accent
#E2466E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B152D2

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

Preview Lab → · Contrast checker → · Palette generator →

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