#B52FE2#B52FE2

#B52FE2 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 59.2% C 0.258 H 315.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B52FE2
RGBrgb(181, 47, 226)
HSLhsl(285, 76%, 54%)
HSVhsv(285, 79%, 89%)
CMYKcmyk(19.9%, 79.2%, 0%, 11.4%)
CIE-LABlab(48.70, 75.36, -63.90)
CIE-LCHlch(48.70, 98.81, 319.71°)
OKLaboklab(59.17% 0.1839 -0.1804)
OKLCHoklch(59.17% 0.258 315.5)
XYZxyz(33.7978, 17.3491, 73.5051)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FE2 #5CE22F
analogous
#5B2FE2 #B52FE2 #E22FB5
triadic
#B52FE2 #E2B52F #2FE2B5
tetradic
#B52FE2 #E25B2F #5CE22F #2FB5E2
square
#B52FE2 #E25B2F #5CE22F #2FB5E2
split-complementary
#B52FE2 #B5E22F #2FE25B
monochromatic
#681284 #921ABA #B52FE2 #C865E9 #DB9AF1

Accessibility & contrast

On white

4.70
#B52FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B52FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FE2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FE2#FFFFFF#000000##FFFFFF
##B52FE21.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#2877DE
Tritanopia (blue-blind)
#B15A8A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b52fe2;
/* rgb */ color: rgb(181, 47, 226);
/* oklch */ color: oklch(59.2% 0.258 315.5);
Tailwind
colors: {
  custom: {
    50: '#d078ec',
    500: '#b52fe2',
    950: '#000000',
  },
}
SCSS
$custom: #b52fe2;
$custom-light: #d078ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fe2",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 284.916,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59166,
    "c": 0.2576,
    "h": 315.5
  },
  "luminance": 0.17348
}

Semantic roles & 50–950 ramp

primary
#B52FE2
secondary
#A3DD90
accent
#F23665
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #B52FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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