#B252CC#B252CC

#B252CC is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.8% C 0.196 H 318.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B252CC
RGBrgb(178, 82, 204)
HSLhsl(287, 54%, 56%)
HSVhsv(287, 60%, 80%)
CMYKcmyk(12.7%, 59.8%, 0%, 20%)
CIE-LABlab(51.68, 57.11, -46.59)
CIE-LCHlch(51.68, 73.70, 320.79°)
OKLaboklab(60.78% 0.1473 -0.13)
OKLCHoklch(60.78% 0.196 318.6)
XYZxyz(32.2750, 19.8605, 59.2484)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252CC #6CCC52
analogous
#7552CC #B252CC #CC52A9
triadic
#B252CC #CCB252 #52CCB2
tetradic
#B252CC #CC7552 #6CCC52 #52A9CC
square
#B252CC #CC7552 #6CCC52 #52A9CC
split-complementary
#B252CC #A9CC52 #52CC75
monochromatic
#6B257E #9433AE #B252CC #C781DA #DCB1E8

Accessibility & contrast

On white

4.22
#B252CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#B252CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252CC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252CC#FFFFFF#000000##000000
##B252CC1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3375D0
Deuteranopia (green-blind)
#587EC9
Tritanopia (blue-blind)
#B26687
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b252cc;
/* rgb */ color: rgb(178, 82, 204);
/* oklch */ color: oklch(60.8% 0.196 318.6);
Tailwind
colors: {
  custom: {
    50: '#cc88dc',
    500: '#b252cc',
    950: '#000000',
  },
}
SCSS
$custom: #b252cc;
$custom-light: #cc88dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b252cc",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 287.213,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60782,
    "c": 0.19646,
    "h": 318.6
  },
  "luminance": 0.19859
}

Semantic roles & 50–950 ramp

primary
#B252CC
secondary
#AED6A4
accent
#DE4A69
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B252CC

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

Preview Lab → · Contrast checker → · Palette generator →

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