#B852EC#B852EC

#B852EC is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.5% C 0.230 H 312.1°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B852EC
RGBrgb(184, 82, 236)
HSLhsl(280, 80%, 62%)
HSVhsv(280, 65%, 93%)
CMYKcmyk(22%, 65.3%, 0%, 7.5%)
CIE-LABlab(54.33, 64.97, -60.45)
CIE-LCHlch(54.33, 88.74, 317.06°)
OKLaboklab(63.46% 0.154 -0.1704)
OKLCHoklch(63.46% 0.23 312.1)
XYZxyz(37.9220, 22.2821, 81.6438)
Luminance0.2228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B852EC #86EC52
analogous
#6B52EC #B852EC #EC52D3
triadic
#B852EC #ECB852 #52ECB8
tetradic
#B852EC #EC6B52 #86EC52 #52D3EC
square
#B852EC #EC6B52 #86EC52 #52D3EC
split-complementary
#B852EC #D3EC52 #52EC6B
monochromatic
#7B13B0 #A11BE6 #B852EC #CF89F2 #E5C0F8

Accessibility & contrast

On white

3.85
#B852EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#B852EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B852EC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B852EC#FFFFFF#000000##000000
##B852EC1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#4484E8
Tritanopia (blue-blind)
#B27198
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b852ec;
/* rgb */ color: rgb(184, 82, 236);
/* oklch */ color: oklch(63.5% 0.230 312.1);
Tailwind
colors: {
  custom: {
    50: '#d189f3',
    500: '#b852ec',
    950: '#000000',
  },
}
SCSS
$custom: #b852ec;
$custom-light: #d189f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b852ec",
  "rgb": {
    "r": 184,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 279.74,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63457,
    "c": 0.2297,
    "h": 312.1
  },
  "luminance": 0.22281
}

Semantic roles & 50–950 ramp

primary
#B852EC
secondary
#C4E9B1
accent
#DD0950
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B852EC

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

Preview Lab → · Contrast checker → · Palette generator →

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