#B52EAF#B52EAF

#B52EAF is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.219 H 330.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B52EAF
RGBrgb(181, 46, 175)
HSLhsl(303, 59%, 45%)
HSVhsv(303, 75%, 71%)
CMYKcmyk(0%, 74.6%, 3.3%, 29%)
CIE-LABlab(45.46, 66.86, -39.57)
CIE-LCHlch(45.46, 77.69, 329.38°)
OKLaboklab(55.88% 0.1893 -0.1093)
OKLCHoklch(55.88% 0.219 330)
XYZxyz(27.7708, 14.8751, 41.9577)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EAF #2EB534
analogous
#782EB5 #B52EAF #B52E6B
triadic
#B52EAF #AFB52E #2EAFB5
tetradic
#B52EAF #B5782E #2EB534 #2E6BB5
square
#B52EAF #B5782E #2EB534 #2E6BB5
split-complementary
#B52EAF #6BB52E #2EB578
monochromatic
#531551 #842280 #B52EAF #D24ECC #DE7FDA

Accessibility & contrast

On white

5.28
#B52EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B52EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EAF
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EAF#FFFFFF#000000##FFFFFF
##B52EAF1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C60B2
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#BC416C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52eaf;
/* rgb */ color: rgb(181, 46, 175);
/* oklch */ color: oklch(55.9% 0.219 330.0);
Tailwind
colors: {
  custom: {
    50: '#cf75c7',
    500: '#b52eaf',
    950: '#000000',
  },
}
SCSS
$custom: #b52eaf;
$custom-light: #cf75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eaf",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 302.667,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55876,
    "c": 0.21855,
    "h": 330
  },
  "luminance": 0.14873
}

Semantic roles & 50–950 ramp

primary
#B52EAF
secondary
#78C77B
accent
#E34C45
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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