#B252CE#B252CE

#B252CE is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.9% C 0.198 H 318.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B252CE
RGBrgb(178, 82, 206)
HSLhsl(286, 56%, 56%)
HSVhsv(286, 60%, 81%)
CMYKcmyk(13.6%, 60.2%, 0%, 19.2%)
CIE-LABlab(51.79, 57.50, -47.56)
CIE-LCHlch(51.79, 74.63, 320.40°)
OKLaboklab(60.9% 0.1473 -0.1329)
OKLCHoklch(60.9% 0.198 318)
XYZxyz(32.5164, 19.9571, 60.5198)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252CE #6ECE52
analogous
#7452CE #B252CE #CE52AC
triadic
#B252CE #CEB252 #52CEB2
tetradic
#B252CE #CE7452 #6ECE52 #52ACCE
square
#B252CE #CE7452 #6ECE52 #52ACCE
split-complementary
#B252CE #ACCE52 #52CE74
monochromatic
#6C2581 #9432B1 #B252CE #C782DC #DCB1E9

Accessibility & contrast

On white

4.21
#B252CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#B252CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252CE
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252CE#FFFFFF#000000##000000
##B252CE1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3175D2
Deuteranopia (green-blind)
#577FCB
Tritanopia (blue-blind)
#B16788
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b252ce;
/* rgb */ color: rgb(178, 82, 206);
/* oklch */ color: oklch(60.9% 0.198 318.0);
Tailwind
colors: {
  custom: {
    50: '#cc88dd',
    500: '#b252ce',
    950: '#000000',
  },
}
SCSS
$custom: #b252ce;
$custom-light: #cc88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b252ce",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 286.452,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60897,
    "c": 0.19839,
    "h": 318
  },
  "luminance": 0.19956
}

Semantic roles & 50–950 ramp

primary
#B252CE
secondary
#B0D7A4
accent
#DF496B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B252CE

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

Preview Lab → · Contrast checker → · Palette generator →

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