#B252D6#B252D6

#B252D6 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.4% C 0.206 H 315.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B252D6
RGBrgb(178, 82, 214)
HSLhsl(284, 62%, 58%)
HSVhsv(284, 62%, 84%)
CMYKcmyk(16.8%, 61.7%, 0%, 16.1%)
CIE-LABlab(52.24, 59.11, -51.41)
CIE-LCHlch(52.24, 78.34, 318.98°)
OKLaboklab(61.37% 0.1474 -0.1441)
OKLCHoklch(61.37% 0.206 315.6)
XYZxyz(33.5131, 20.3558, 65.7690)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252D6 #76D652
analogous
#7052D6 #B252D6 #D652B8
triadic
#B252D6 #D6B252 #52D6B2
tetradic
#B252D6 #D67052 #76D652 #52B8D6
square
#B252D6 #D67052 #76D652 #52B8D6
split-complementary
#B252D6 #B8D652 #52D670
monochromatic
#6F218C #962DBE #B252D6 #C883E2 #DEB5ED

Accessibility & contrast

On white

4.14
#B252D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#B252D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252D6
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252D6#FFFFFF#000000##000000
##B252D61.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2577DA
Deuteranopia (green-blind)
#517FD3
Tritanopia (blue-blind)
#B06A8D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b252d6;
/* rgb */ color: rgb(178, 82, 214);
/* oklch */ color: oklch(61.4% 0.206 315.6);
Tailwind
colors: {
  custom: {
    50: '#cc88e3',
    500: '#b252d6',
    950: '#000000',
  },
}
SCSS
$custom: #b252d6;
$custom-light: #cc88e3;
$custom-dark: #000000;
JSON
{
  "hex": "#b252d6",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 214
  },
  "hsl": {
    "h": 283.636,
    "s": 61.682,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61367,
    "c": 0.20616,
    "h": 315.6
  },
  "luminance": 0.20355
}

Semantic roles & 50–950 ramp

primary
#B252D6
secondary
#B6DCA8
accent
#E5436F
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C15
muted
#827D84

Preview Lab

Preview with #B252D6

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

Preview Lab → · Contrast checker → · Palette generator →

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