#B252C2#B252C2

#B252C2 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.2% C 0.187 H 321.7°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B252C2
RGBrgb(178, 82, 194)
HSLhsl(291, 48%, 54%)
HSVhsv(291, 58%, 76%)
CMYKcmyk(8.2%, 57.7%, 0%, 23.9%)
CIE-LABlab(51.15, 55.17, -41.69)
CIE-LCHlch(51.15, 69.15, 322.92°)
OKLaboklab(60.22% 0.1468 -0.1158)
OKLCHoklch(60.22% 0.187 321.7)
XYZxyz(31.1139, 19.3961, 53.1334)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252C2 #62C252
analogous
#7A52C2 #B252C2 #C2529A
triadic
#B252C2 #C2B252 #52C2B2
tetradic
#B252C2 #C27A52 #62C252 #529AC2
square
#B252C2 #C27A52 #62C252 #529AC2
split-complementary
#B252C2 #9AC252 #52C27A
monochromatic
#672872 #90389F #B252C2 #C67FD2 #DAACE2

Accessibility & contrast

On white

4.30
#B252C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#B252C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252C2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252C2#FFFFFF#000000##000000
##B252C21.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D73C6
Deuteranopia (green-blind)
#5E7EBF
Tritanopia (blue-blind)
#B46282
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b252c2;
/* rgb */ color: rgb(178, 82, 194);
/* oklch */ color: oklch(60.2% 0.187 321.7);
Tailwind
colors: {
  custom: {
    50: '#cc88d5',
    500: '#b252c2',
    950: '#000000',
  },
}
SCSS
$custom: #b252c2;
$custom-light: #cc88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b252c2",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 291.429,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60222,
    "c": 0.18692,
    "h": 321.7
  },
  "luminance": 0.19395
}

Semantic roles & 50–950 ramp

primary
#B252C2
secondary
#A7D0A0
accent
#D75064
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #B252C2

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

Preview Lab → · Contrast checker → · Palette generator →

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