#B252CA#B252CA

#B252CA is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.7% C 0.195 H 319.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B252CA
RGBrgb(178, 82, 202)
HSLhsl(288, 53%, 56%)
HSVhsv(288, 59%, 79%)
CMYKcmyk(11.9%, 59.4%, 0%, 20.8%)
CIE-LABlab(51.57, 56.72, -45.62)
CIE-LCHlch(51.57, 72.79, 321.19°)
OKLaboklab(60.67% 0.1472 -0.1272)
OKLCHoklch(60.67% 0.195 319.2)
XYZxyz(32.0367, 19.7652, 57.9932)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252CA #6ACA52
analogous
#7652CA #B252CA #CA52A6
triadic
#B252CA #CAB252 #52CAB2
tetradic
#B252CA #CA7652 #6ACA52 #52A6CA
square
#B252CA #CA7652 #6ACA52 #52A6CA
split-complementary
#B252CA #A6CA52 #52CA76
monochromatic
#6B267C #9334AB #B252CA #C781D8 #DCB0E7

Accessibility & contrast

On white

4.24
#B252CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#B252CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252CA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252CA#FFFFFF#000000##000000
##B252CA1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3574CE
Deuteranopia (green-blind)
#5A7EC7
Tritanopia (blue-blind)
#B26586
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b252ca;
/* rgb */ color: rgb(178, 82, 202);
/* oklch */ color: oklch(60.7% 0.195 319.2);
Tailwind
colors: {
  custom: {
    50: '#cc88db',
    500: '#b252ca',
    950: '#000000',
  },
}
SCSS
$custom: #b252ca;
$custom-light: #cc88db;
$custom-dark: #000000;
JSON
{
  "hex": "#b252ca",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 288,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60668,
    "c": 0.19454,
    "h": 319.2
  },
  "luminance": 0.19764
}

Semantic roles & 50–950 ramp

primary
#B252CA
secondary
#ADD5A3
accent
#DD4B68
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B252CA

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

Preview Lab → · Contrast checker → · Palette generator →

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