#B252B2#B252B2

#B252B2 is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.4% C 0.172 H 327.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B252B2
RGBrgb(178, 82, 178)
HSLhsl(300, 38%, 51%)
HSVhsv(300, 54%, 70%)
CMYKcmyk(0%, 53.9%, 0%, 30.2%)
CIE-LABlab(50.35, 52.19, -33.66)
CIE-LCHlch(50.35, 62.10, 327.18°)
OKLaboklab(59.38% 0.1452 -0.0926)
OKLCHoklch(59.38% 0.172 327.5)
XYZxyz(29.4128, 18.7156, 44.1741)
Luminance0.1871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252B2 #52B252
analogous
#8252B2 #B252B2 #B25282
triadic
#B252B2 #B2B252 #52B2B2
tetradic
#B252B2 #B28252 #52B252 #5282B2
square
#B252B2 #B28252 #52B252 #5282B2
split-complementary
#B252B2 #82B252 #52B282
monochromatic
#5F2A5F #8A3D8A #B252B2 #C57CC5 #D8A7D8

Accessibility & contrast

On white

4.43
#B252B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#B252B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252B2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252B2#FFFFFF#000000##000000
##B252B21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4870B5
Deuteranopia (green-blind)
#677CAF
Tritanopia (blue-blind)
#B75D7A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b252b2;
/* rgb */ color: rgb(178, 82, 178);
/* oklch */ color: oklch(59.4% 0.172 327.5);
Tailwind
colors: {
  custom: {
    50: '#cb87c9',
    500: '#b252b2',
    950: '#000000',
  },
}
SCSS
$custom: #b252b2;
$custom-light: #cb87c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b252b2",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59381,
    "c": 0.17216,
    "h": 327.5
  },
  "luminance": 0.18714
}

Semantic roles & 50–950 ramp

primary
#B252B2
secondary
#9BC59B
accent
#CE5959
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B252B2

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

Preview Lab → · Contrast checker → · Palette generator →

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