#9852EC#9852EC

#9852EC is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.8% C 0.222 H 300.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9852EC
RGBrgb(152, 82, 236)
HSLhsl(267, 80%, 62%)
HSVhsv(267, 65%, 93%)
CMYKcmyk(35.6%, 65.3%, 0%, 7.5%)
CIE-LABlab(50.41, 58.29, -66.96)
CIE-LCHlch(50.41, 88.78, 311.04°)
OKLaboklab(59.8% 0.1132 -0.1905)
OKLCHoklch(59.8% 0.222 300.7)
XYZxyz(31.1028, 18.7659, 81.3242)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852EC #A6EC52
analogous
#5259EC #9852EC #E552EC
triadic
#9852EC #EC9852 #52EC98
tetradic
#9852EC #EC5259 #A6EC52 #52ECE5
square
#9852EC #EC5259 #A6EC52 #52ECE5
split-complementary
#9852EC #ECE552 #59EC52
monochromatic
#5B13B0 #771BE6 #9852EC #B989F2 #DAC0F8

Accessibility & contrast

On white

4.42
#9852EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#9852EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9852EC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852EC#FFFFFF#000000##000000
##9852EC1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#867598
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9852ec;
/* rgb */ color: rgb(152, 82, 236);
/* oklch */ color: oklch(59.8% 0.222 300.7);
Tailwind
colors: {
  custom: {
    50: '#bc87f3',
    500: '#9852ec',
    950: '#000000',
  },
}
SCSS
$custom: #9852ec;
$custom-light: #bc87f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9852ec",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 267.273,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59797,
    "c": 0.2216,
    "h": 300.7
  },
  "luminance": 0.18766
}

Semantic roles & 50–950 ramp

primary
#9852EC
secondary
#CFE9B1
accent
#DD097C
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9852EC

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

Preview Lab → · Contrast checker → · Palette generator →

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