#B252DC#B252DC

#B252DC is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 61.7% C 0.212 H 314.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B252DC
RGBrgb(178, 82, 220)
HSLhsl(282, 66%, 59%)
HSVhsv(282, 63%, 86%)
CMYKcmyk(19.1%, 62.7%, 0%, 13.7%)
CIE-LABlab(52.58, 60.33, -54.27)
CIE-LCHlch(52.58, 81.15, 318.03°)
OKLaboklab(61.73% 0.1474 -0.1525)
OKLCHoklch(61.73% 0.212 314)
XYZxyz(34.2935, 20.6679, 69.8791)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252DC #7CDC52
analogous
#6D52DC #B252DC #DC52C1
triadic
#B252DC #DCB252 #52DCB2
tetradic
#B252DC #DC6D52 #7CDC52 #52C1DC
square
#B252DC #DC6D52 #7CDC52 #52C1DC
split-complementary
#B252DC #C1DC52 #52DC6D
monochromatic
#711E95 #9829C8 #B252DC #C985E6 #DFB8F1

Accessibility & contrast

On white

4.09
#B252DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#B252DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252DC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252DC#FFFFFF#000000##000000
##B252DC1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1978E0
Deuteranopia (green-blind)
#4C80D9
Tritanopia (blue-blind)
#AE6C90
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b252dc;
/* rgb */ color: rgb(178, 82, 220);
/* oklch */ color: oklch(61.7% 0.212 314.0);
Tailwind
colors: {
  custom: {
    50: '#cd88e7',
    500: '#b252dc',
    950: '#000000',
  },
}
SCSS
$custom: #b252dc;
$custom-light: #cd88e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b252dc",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 281.739,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.6173,
    "c": 0.21203,
    "h": 314
  },
  "luminance": 0.20667
}

Semantic roles & 50–950 ramp

primary
#B252DC
secondary
#BAE0AA
accent
#E93F72
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B252DC

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

Preview Lab → · Contrast checker → · Palette generator →

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