#B252EB#B252EB

#B252EB is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.7% C 0.227 H 310.3°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B252EB
RGBrgb(178, 82, 235)
HSLhsl(278, 79%, 62%)
HSVhsv(278, 65%, 92%)
CMYKcmyk(24.3%, 65.1%, 0%, 7.8%)
CIE-LABlab(53.49, 63.47, -61.27)
CIE-LCHlch(53.49, 88.22, 316.01°)
OKLaboklab(62.67% 0.1467 -0.173)
OKLCHoklch(62.67% 0.227 310.3)
XYZxyz(36.3699, 21.4985, 80.8148)
Luminance0.2150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252EB #8BEB52
analogous
#6652EB #B252EB #EB52D8
triadic
#B252EB #EBB252 #52EBB2
tetradic
#B252EB #EB6652 #8BEB52 #52D8EB
square
#B252EB #EB6652 #8BEB52 #52D8EB
split-complementary
#B252EB #D8EB52 #52EB66
monochromatic
#7514AE #9A1BE5 #B252EB #CA89F1 #E3C0F8

Accessibility & contrast

On white

3.96
#B252EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#B252EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252EB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252EB#FFFFFF#000000##000000
##B252EB1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#3D81E8
Tritanopia (blue-blind)
#AA7198
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b252eb;
/* rgb */ color: rgb(178, 82, 235);
/* oklch */ color: oklch(62.7% 0.227 310.3);
Tailwind
colors: {
  custom: {
    50: '#cd89f2',
    500: '#b252eb',
    950: '#000000',
  },
}
SCSS
$custom: #b252eb;
$custom-light: #cd89f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b252eb",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 277.647,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62674,
    "c": 0.22679,
    "h": 310.3
  },
  "luminance": 0.21498
}

Semantic roles & 50–950 ramp

primary
#B252EB
secondary
#C5E8B0
accent
#DC0A58
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B252EB

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

Preview Lab → · Contrast checker → · Palette generator →

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