#B52EB7#B52EB7

#B52EB7 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.225 H 327.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#B52EB7
RGBrgb(181, 46, 183)
HSLhsl(299, 60%, 45%)
HSVhsv(299, 75%, 72%)
CMYKcmyk(1.1%, 74.9%, 0%, 28.2%)
CIE-LABlab(45.91, 68.14, -43.58)
CIE-LCHlch(45.91, 80.88, 327.40°)
OKLaboklab(56.34% 0.1892 -0.1209)
OKLCHoklch(56.34% 0.225 327.4)
XYZxyz(28.5799, 15.1987, 46.2189)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EB7 #30B72E
analogous
#702EB7 #B52EB7 #B72E75
triadic
#B52EB7 #B7B52E #2EB7B5
tetradic
#B52EB7 #B7702E #30B72E #2E75B7
square
#B52EB7 #B7702E #30B72E #2E75B7
split-complementary
#B52EB7 #75B72E #2EB770
monochromatic
#541555 #852286 #B52EB7 #D14FD3 #DE80DF

Accessibility & contrast

On white

5.20
#B52EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B52EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EB7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EB7#FFFFFF#000000##FFFFFF
##B52EB71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0762BB
Deuteranopia (green-blind)
#5273B4
Tritanopia (blue-blind)
#BA4571
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52eb7;
/* rgb */ color: rgb(181, 46, 183);
/* oklch */ color: oklch(56.3% 0.225 327.4);
Tailwind
colors: {
  custom: {
    50: '#cf76cd',
    500: '#b52eb7',
    950: '#000000',
  },
}
SCSS
$custom: #b52eb7;
$custom-light: #cf76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eb7",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 299.124,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56335,
    "c": 0.22455,
    "h": 327.4
  },
  "luminance": 0.15197
}

Semantic roles & 50–950 ramp

primary
#B52EB7
secondary
#7AC879
accent
#E34547
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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