#B252D1#B252D1

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

Color values

HEX#B252D1
RGBrgb(178, 82, 209)
HSLhsl(285, 58%, 57%)
HSVhsv(285, 61%, 82%)
CMYKcmyk(14.8%, 60.8%, 0%, 18%)
CIE-LABlab(51.95, 58.10, -49.01)
CIE-LCHlch(51.95, 76.01, 319.85°)
OKLaboklab(61.07% 0.1474 -0.1371)
OKLCHoklch(61.07% 0.201 317.1)
XYZxyz(32.8843, 20.1043, 62.4575)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252D1 #71D152
analogous
#7252D1 #B252D1 #D152B1
triadic
#B252D1 #D1B252 #52D1B2
tetradic
#B252D1 #D17252 #71D152 #52B1D1
square
#B252D1 #D17252 #71D152 #52B1D1
split-complementary
#B252D1 #B1D152 #52D172
monochromatic
#6D2385 #9530B6 #B252D1 #C882DE #DDB3EB

Accessibility & contrast

On white

4.18
#B252D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#B252D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252D1
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252D1#FFFFFF#000000##000000
##B252D11.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D76D5
Deuteranopia (green-blind)
#557FCE
Tritanopia (blue-blind)
#B1688A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b252d1;
/* rgb */ color: rgb(178, 82, 209);
/* oklch */ color: oklch(61.1% 0.201 317.1);
Tailwind
colors: {
  custom: {
    50: '#cc88e0',
    500: '#b252d1',
    950: '#000000',
  },
}
SCSS
$custom: #b252d1;
$custom-light: #cc88e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b252d1",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 285.354,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61071,
    "c": 0.2013,
    "h": 317.1
  },
  "luminance": 0.20103
}

Semantic roles & 50–950 ramp

primary
#B252D1
secondary
#B2D9A6
accent
#E1476C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B252D1

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

Preview Lab → · Contrast checker → · Palette generator →

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