#B252D9#B252D9

#B252D9 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.5% C 0.209 H 314.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B252D9
RGBrgb(178, 82, 217)
HSLhsl(283, 64%, 59%)
HSVhsv(283, 62%, 85%)
CMYKcmyk(18%, 62.2%, 0%, 14.9%)
CIE-LABlab(52.41, 59.72, -52.84)
CIE-LCHlch(52.41, 79.74, 318.50°)
OKLaboklab(61.55% 0.1474 -0.1483)
OKLCHoklch(61.55% 0.209 314.8)
XYZxyz(33.8997, 20.5104, 67.8054)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252D9 #79D952
analogous
#6E52D9 #B252D9 #D952BC
triadic
#B252D9 #D9B252 #52D9B2
tetradic
#B252D9 #D96E52 #79D952 #52BCD9
square
#B252D9 #D96E52 #79D952 #52BCD9
split-complementary
#B252D9 #BCD952 #52D96E
monochromatic
#702091 #972BC3 #B252D9 #C884E4 #DFB6EF

Accessibility & contrast

On white

4.12
#B252D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#B252D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252D9
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252D9#FFFFFF#000000##000000
##B252D91.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2078DD
Deuteranopia (green-blind)
#4F80D6
Tritanopia (blue-blind)
#AF6B8E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b252d9;
/* rgb */ color: rgb(178, 82, 217);
/* oklch */ color: oklch(61.5% 0.209 314.8);
Tailwind
colors: {
  custom: {
    50: '#cc88e5',
    500: '#b252d9',
    950: '#000000',
  },
}
SCSS
$custom: #b252d9;
$custom-light: #cc88e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b252d9",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 282.667,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61547,
    "c": 0.20909,
    "h": 314.8
  },
  "luminance": 0.20509
}

Semantic roles & 50–950 ramp

primary
#B252D9
secondary
#B8DEA9
accent
#E74171
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B252D9

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

Preview Lab → · Contrast checker → · Palette generator →

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