#B252DD#B252DD

#B252DD is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 61.8% C 0.213 H 313.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B252DD
RGBrgb(178, 82, 221)
HSLhsl(281, 67%, 59%)
HSVhsv(281, 63%, 87%)
CMYKcmyk(19.5%, 62.9%, 0%, 13.3%)
CIE-LABlab(52.64, 60.54, -54.74)
CIE-LCHlch(52.64, 81.62, 317.88°)
OKLaboklab(61.79% 0.1473 -0.1538)
OKLCHoklch(61.79% 0.213 313.8)
XYZxyz(34.4263, 20.7211, 70.5787)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252DD #7DDD52
analogous
#6D52DD #B252DD #DD52C3
triadic
#B252DD #DDB252 #52DDB2
tetradic
#B252DD #DD6D52 #7DDD52 #52C3DD
square
#B252DD #DD6D52 #7DDD52 #52C3DD
split-complementary
#B252DD #C3DD52 #52DD6D
monochromatic
#711E97 #9828CA #B252DD #C985E7 #E0B8F1

Accessibility & contrast

On white

4.08
#B252DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#B252DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252DD
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252DD#FFFFFF#000000##000000
##B252DD1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1778E1
Deuteranopia (green-blind)
#4C80DA
Tritanopia (blue-blind)
#AE6C90
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b252dd;
/* rgb */ color: rgb(178, 82, 221);
/* oklch */ color: oklch(61.8% 0.213 313.8);
Tailwind
colors: {
  custom: {
    50: '#cd88e8',
    500: '#b252dd',
    950: '#000000',
  },
}
SCSS
$custom: #b252dd;
$custom-light: #cd88e8;
$custom-dark: #000000;
JSON
{
  "hex": "#b252dd",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 281.439,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61791,
    "c": 0.21301,
    "h": 313.8
  },
  "luminance": 0.2072
}

Semantic roles & 50–950 ramp

primary
#B252DD
secondary
#BBE0AA
accent
#EA3E73
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B252DD

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

Preview Lab → · Contrast checker → · Palette generator →

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