#B252DF#B252DF

#B252DF is a mid, highly saturated purple. Relative luminance 0.208; OKLCH L 61.9% C 0.215 H 313.2°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B252DF
RGBrgb(178, 82, 223)
HSLhsl(281, 69%, 60%)
HSVhsv(281, 63%, 87%)
CMYKcmyk(20.2%, 63.2%, 0%, 12.5%)
CIE-LABlab(52.76, 60.95, -55.68)
CIE-LCHlch(52.76, 82.56, 317.59°)
OKLaboklab(61.92% 0.1473 -0.1566)
OKLCHoklch(61.92% 0.215 313.2)
XYZxyz(34.6944, 20.8283, 71.9904)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252DF #7FDF52
analogous
#6C52DF #B252DF #DF52C5
triadic
#B252DF #DFB252 #52DFB2
tetradic
#B252DF #DF6C52 #7FDF52 #52C5DF
square
#B252DF #DF6C52 #7FDF52 #52C5DF
split-complementary
#B252DF #C5DF52 #52DF6C
monochromatic
#721D9A #9826CE #B252DF #C986E9 #E0B9F2

Accessibility & contrast

On white

4.07
#B252DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#B252DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252DF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252DF#FFFFFF#000000##000000
##B252DF1.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1179E3
Deuteranopia (green-blind)
#4A80DC
Tritanopia (blue-blind)
#AD6D91
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b252df;
/* rgb */ color: rgb(178, 82, 223);
/* oklch */ color: oklch(61.9% 0.215 313.2);
Tailwind
colors: {
  custom: {
    50: '#cd88ea',
    500: '#b252df',
    950: '#000000',
  },
}
SCSS
$custom: #b252df;
$custom-light: #cd88ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b252df",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 280.851,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61915,
    "c": 0.21498,
    "h": 313.2
  },
  "luminance": 0.20827
}

Semantic roles & 50–950 ramp

primary
#B252DF
secondary
#BDE2AB
accent
#EC3C74
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B252DF

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

Preview Lab → · Contrast checker → · Palette generator →

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