#B252BA#B252BA

#B252BA is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.8% C 0.179 H 324.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B252BA
RGBrgb(178, 82, 186)
HSLhsl(295, 43%, 53%)
HSVhsv(295, 56%, 73%)
CMYKcmyk(4.3%, 55.9%, 0%, 27.1%)
CIE-LABlab(50.74, 53.66, -37.70)
CIE-LCHlch(50.74, 65.58, 324.91°)
OKLaboklab(59.79% 0.1461 -0.1042)
OKLCHoklch(59.79% 0.179 324.5)
XYZxyz(30.2396, 19.0463, 48.5284)
Luminance0.1905 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252BA #5ABA52
analogous
#7E52BA #B252BA #BA528E
triadic
#B252BA #BAB252 #52BAB2
tetradic
#B252BA #BA7E52 #5ABA52 #528EBA
square
#B252BA #BA7E52 #5ABA52 #528EBA
split-complementary
#B252BA #8EBA52 #52BA7E
monochromatic
#632A68 #8D3B94 #B252BA #C57ECB #D9AADD

Accessibility & contrast

On white

4.37
#B252BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#B252BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252BA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252BA#FFFFFF#000000##000000
##B252BA1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4371BD
Deuteranopia (green-blind)
#637DB7
Tritanopia (blue-blind)
#B5607E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b252ba;
/* rgb */ color: rgb(178, 82, 186);
/* oklch */ color: oklch(59.8% 0.179 324.5);
Tailwind
colors: {
  custom: {
    50: '#cc87cf',
    500: '#b252ba',
    950: '#000000',
  },
}
SCSS
$custom: #b252ba;
$custom-light: #cc87cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b252ba",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 295.385,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.59793,
    "c": 0.17944,
    "h": 324.5
  },
  "luminance": 0.19045
}

Semantic roles & 50–950 ramp

primary
#B252BA
secondary
#A1CA9D
accent
#D3555F
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B252BA

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

Preview Lab → · Contrast checker → · Palette generator →

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