#9852EA#9852EA

#9852EA is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.7% C 0.219 H 301.1°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9852EA
RGBrgb(152, 82, 234)
HSLhsl(268, 78%, 62%)
HSVhsv(268, 65%, 92%)
CMYKcmyk(35%, 65%, 0%, 8.2%)
CIE-LABlab(50.28, 57.81, -66.05)
CIE-LCHlch(50.28, 87.78, 311.19°)
OKLaboklab(59.66% 0.1134 -0.1879)
OKLCHoklch(59.66% 0.219 301.1)
XYZxyz(30.8139, 18.6503, 79.8024)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852EA #A4EA52
analogous
#5258EA #9852EA #E452EA
triadic
#9852EA #EA9852 #52EA98
tetradic
#9852EA #EA5258 #A4EA52 #52EAE4
square
#9852EA #EA5258 #A4EA52 #52EAE4
split-complementary
#9852EA #EAE452 #58EA52
monochromatic
#5B15AD #781CE3 #9852EA #B889F1 #D9BFF7

Accessibility & contrast

On white

4.44
#9852EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#9852EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9852EA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852EA#FFFFFF#000000##000000
##9852EA1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#0177E7
Tritanopia (blue-blind)
#877497
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9852ea;
/* rgb */ color: rgb(152, 82, 234);
/* oklch */ color: oklch(59.7% 0.219 301.1);
Tailwind
colors: {
  custom: {
    50: '#bc87f2',
    500: '#9852ea',
    950: '#000000',
  },
}
SCSS
$custom: #9852ea;
$custom-light: #bc87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9852ea",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 267.632,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59656,
    "c": 0.21943,
    "h": 301.1
  },
  "luminance": 0.1865
}

Semantic roles & 50–950 ramp

primary
#9852EA
secondary
#CEE8B0
accent
#DB0B7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9852EA

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

Preview Lab → · Contrast checker → · Palette generator →

#9852EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva