#B252CD#B252CD

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

Color values

HEX#B252CD
RGBrgb(178, 82, 205)
HSLhsl(287, 55%, 56%)
HSVhsv(287, 60%, 80%)
CMYKcmyk(13.2%, 60%, 0%, 19.6%)
CIE-LABlab(51.73, 57.31, -47.08)
CIE-LCHlch(51.73, 74.16, 320.60°)
OKLaboklab(60.84% 0.1473 -0.1315)
OKLCHoklch(60.84% 0.197 318.3)
XYZxyz(32.3953, 19.9087, 59.8821)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252CD #6DCD52
analogous
#7552CD #B252CD #CD52AB
triadic
#B252CD #CDB252 #52CDB2
tetradic
#B252CD #CD7552 #6DCD52 #52ABCD
square
#B252CD #CD7552 #6DCD52 #52ABCD
split-complementary
#B252CD #ABCD52 #52CD75
monochromatic
#6C2580 #9433AF #B252CD #C781DB #DCB1E8

Accessibility & contrast

On white

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

On black

4.98
#B252CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252CD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252CD#FFFFFF#000000##000000
##B252CD1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3275D1
Deuteranopia (green-blind)
#587ECA
Tritanopia (blue-blind)
#B26688
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b252cd;
/* rgb */ color: rgb(178, 82, 205);
/* oklch */ color: oklch(60.8% 0.197 318.3);
Tailwind
colors: {
  custom: {
    50: '#cc88dd',
    500: '#b252cd',
    950: '#000000',
  },
}
SCSS
$custom: #b252cd;
$custom-light: #cc88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b252cd",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 286.829,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60839,
    "c": 0.19742,
    "h": 318.3
  },
  "luminance": 0.19907
}

Semantic roles & 50–950 ramp

primary
#B252CD
secondary
#AFD7A4
accent
#DE496A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B252CD

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

Preview Lab → · Contrast checker → · Palette generator →

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