#B252D2#B252D2

#B252D2 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.1% C 0.202 H 316.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#B252D2
RGBrgb(178, 82, 210)
HSLhsl(285, 59%, 57%)
HSVhsv(285, 61%, 82%)
CMYKcmyk(15.2%, 61%, 0%, 17.6%)
CIE-LABlab(52.01, 58.30, -49.50)
CIE-LCHlch(52.01, 76.48, 319.67°)
OKLaboklab(61.13% 0.1474 -0.1385)
OKLCHoklch(61.13% 0.202 316.8)
XYZxyz(33.0085, 20.1539, 63.1116)
Luminance0.2015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252D2 #72D252
analogous
#7252D2 #B252D2 #D252B2
triadic
#B252D2 #D2B252 #52D2B2
tetradic
#B252D2 #D27252 #72D252 #52B2D2
square
#B252D2 #D27252 #72D252 #52B2D2
split-complementary
#B252D2 #B2D252 #52D272
monochromatic
#6E2387 #9530B7 #B252D2 #C883DF #DDB3EB

Accessibility & contrast

On white

4.17
#B252D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#B252D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252D2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252D2#FFFFFF#000000##000000
##B252D21.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B76D6
Deuteranopia (green-blind)
#547FCF
Tritanopia (blue-blind)
#B1688B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b252d2;
/* rgb */ color: rgb(178, 82, 210);
/* oklch */ color: oklch(61.1% 0.202 316.8);
Tailwind
colors: {
  custom: {
    50: '#cc88e0',
    500: '#b252d2',
    950: '#000000',
  },
}
SCSS
$custom: #b252d2;
$custom-light: #cc88e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b252d2",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 285,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6113,
    "c": 0.20227,
    "h": 316.8
  },
  "luminance": 0.20153
}

Semantic roles & 50–950 ramp

primary
#B252D2
secondary
#B3DAA6
accent
#E2466D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B252D2

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

Preview Lab → · Contrast checker → · Palette generator →

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