#B152D7#B152D7

#B152D7 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.3% C 0.207 H 315.0°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B152D7
RGBrgb(177, 82, 215)
HSLhsl(283, 62%, 58%)
HSVhsv(283, 62%, 84%)
CMYKcmyk(17.7%, 61.9%, 0%, 15.7%)
CIE-LABlab(52.16, 59.08, -52.11)
CIE-LCHlch(52.16, 78.77, 318.59°)
OKLaboklab(61.3% 0.1462 -0.1462)
OKLCHoklch(61.3% 0.207 315)
XYZxyz(33.4125, 20.2891, 66.4329)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152D7 #78D752
analogous
#6E52D7 #B152D7 #D752BA
triadic
#B152D7 #D7B152 #52D7B1
tetradic
#B152D7 #D76E52 #78D752 #52BAD7
square
#B152D7 #D76E52 #78D752 #52BAD7
split-complementary
#B152D7 #BAD752 #52D76E
monochromatic
#6F218E #952CC0 #B152D7 #C784E2 #DEB5EE

Accessibility & contrast

On white

4.15
#B152D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#B152D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152D7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152D7#FFFFFF#000000##000000
##B152D71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2377DB
Deuteranopia (green-blind)
#507FD4
Tritanopia (blue-blind)
#AE6A8D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b152d7;
/* rgb */ color: rgb(177, 82, 215);
/* oklch */ color: oklch(61.3% 0.207 315.0);
Tailwind
colors: {
  custom: {
    50: '#cc88e4',
    500: '#b152d7',
    950: '#000000',
  },
}
SCSS
$custom: #b152d7;
$custom-light: #cc88e4;
$custom-dark: #000000;
JSON
{
  "hex": "#b152d7",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 282.857,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61304,
    "c": 0.20674,
    "h": 315
  },
  "luminance": 0.20288
}

Semantic roles & 50–950 ramp

primary
#B152D7
secondary
#B7DDA8
accent
#E64271
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B152D7

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

Preview Lab → · Contrast checker → · Palette generator →

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