#B252D5#B252D5

#B252D5 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.3% C 0.205 H 315.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B252D5
RGBrgb(178, 82, 213)
HSLhsl(284, 61%, 58%)
HSVhsv(284, 62%, 84%)
CMYKcmyk(16.4%, 61.5%, 0%, 16.5%)
CIE-LABlab(52.18, 58.91, -50.94)
CIE-LCHlch(52.18, 77.87, 319.15°)
OKLaboklab(61.31% 0.1474 -0.1427)
OKLCHoklch(61.31% 0.205 315.9)
XYZxyz(33.3858, 20.3048, 65.0985)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252D5 #75D552
analogous
#7052D5 #B252D5 #D552B7
triadic
#B252D5 #D5B252 #52D5B2
tetradic
#B252D5 #D57052 #75D552 #52B7D5
square
#B252D5 #D57052 #75D552 #52B7D5
split-complementary
#B252D5 #B7D552 #52D570
monochromatic
#6F228B #962EBC #B252D5 #C883E1 #DEB4ED

Accessibility & contrast

On white

4.15
#B252D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#B252D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252D5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252D5#FFFFFF#000000##000000
##B252D51.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2777D9
Deuteranopia (green-blind)
#527FD2
Tritanopia (blue-blind)
#B0698C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b252d5;
/* rgb */ color: rgb(178, 82, 213);
/* oklch */ color: oklch(61.3% 0.205 315.9);
Tailwind
colors: {
  custom: {
    50: '#cc88e2',
    500: '#b252d5',
    950: '#000000',
  },
}
SCSS
$custom: #b252d5;
$custom-light: #cc88e2;
$custom-dark: #000000;
JSON
{
  "hex": "#b252d5",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 213
  },
  "hsl": {
    "h": 283.969,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61307,
    "c": 0.20519,
    "h": 315.9
  },
  "luminance": 0.20304
}

Semantic roles & 50–950 ramp

primary
#B252D5
secondary
#B5DCA7
accent
#E4446F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B252D5

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

Preview Lab → · Contrast checker → · Palette generator →

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