#B252AB#B252AB

#B252AB is a mid, vivid purple. Relative luminance 0.184; OKLCH L 59.0% C 0.166 H 330.3°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B252AB
RGBrgb(178, 82, 171)
HSLhsl(304, 38%, 51%)
HSVhsv(304, 54%, 70%)
CMYKcmyk(0%, 53.9%, 3.9%, 30.2%)
CIE-LABlab(50.03, 50.95, -30.07)
CIE-LCHlch(50.03, 59.16, 329.45°)
OKLaboklab(59.04% 0.1442 -0.0823)
OKLCHoklch(59.04% 0.166 330.3)
XYZxyz(28.7278, 18.4417, 40.5666)
Luminance0.1844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252AB #52B259
analogous
#8952B2 #B252AB #B2527B
triadic
#B252AB #ABB252 #52ABB2
tetradic
#B252AB #B28952 #52B259 #527BB2
square
#B252AB #B28952 #52B259 #527BB2
split-complementary
#B252AB #7BB252 #52B289
monochromatic
#5F2A5B #8A3D84 #B252AB #C57CC0 #D8A7D4

Accessibility & contrast

On white

4.48
#B252AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#B252AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252AB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252AB#FFFFFF#000000##000000
##B252AB1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6FAE
Deuteranopia (green-blind)
#6A7CA8
Tritanopia (blue-blind)
#B85B77
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b252ab;
/* rgb */ color: rgb(178, 82, 171);
/* oklch */ color: oklch(59.0% 0.166 330.3);
Tailwind
colors: {
  custom: {
    50: '#cb87c4',
    500: '#b252ab',
    950: '#000000',
  },
}
SCSS
$custom: #b252ab;
$custom-light: #cb87c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b252ab",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 171
  },
  "hsl": {
    "h": 304.375,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59036,
    "c": 0.16598,
    "h": 330.3
  },
  "luminance": 0.1844
}

Semantic roles & 50–950 ramp

primary
#B252AB
secondary
#9BC59E
accent
#CE6259
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C12
muted
#827D81

Preview Lab

Preview with #B252AB

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

Preview Lab → · Contrast checker → · Palette generator →

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