#B52EB3#B52EB3

#B52EB3 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.222 H 328.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B52EB3
RGBrgb(181, 46, 179)
HSLhsl(301, 59%, 45%)
HSVhsv(301, 75%, 71%)
CMYKcmyk(0%, 74.6%, 1.1%, 29%)
CIE-LABlab(45.68, 67.49, -41.58)
CIE-LCHlch(45.68, 79.27, 328.36°)
OKLaboklab(56.1% 0.1893 -0.1151)
OKLCHoklch(56.1% 0.222 328.7)
XYZxyz(28.1695, 15.0345, 44.0574)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EB3 #2EB530
analogous
#742EB5 #B52EB3 #B52E70
triadic
#B52EB3 #B3B52E #2EB3B5
tetradic
#B52EB3 #B5742E #2EB530 #2E70B5
square
#B52EB3 #B5742E #2EB530 #2E70B5
split-complementary
#B52EB3 #70B52E #2EB574
monochromatic
#531552 #842283 #B52EB3 #D24ED0 #DE7FDD

Accessibility & contrast

On white

5.24
#B52EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B52EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EB3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EB3#FFFFFF#000000##FFFFFF
##B52EB31.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B7
Deuteranopia (green-blind)
#5572B0
Tritanopia (blue-blind)
#BB436F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52eb3;
/* rgb */ color: rgb(181, 46, 179);
/* oklch */ color: oklch(56.1% 0.222 328.7);
Tailwind
colors: {
  custom: {
    50: '#cf75ca',
    500: '#b52eb3',
    950: '#000000',
  },
}
SCSS
$custom: #b52eb3;
$custom-light: #cf75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eb3",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 300.889,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56103,
    "c": 0.22153,
    "h": 328.7
  },
  "luminance": 0.15032
}

Semantic roles & 50–950 ramp

primary
#B52EB3
secondary
#78C779
accent
#E34745
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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