#9852EB#9852EB

#9852EB is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.7% C 0.221 H 300.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9852EB
RGBrgb(152, 82, 235)
HSLhsl(267, 79%, 62%)
HSVhsv(267, 65%, 92%)
CMYKcmyk(35.3%, 65.1%, 0%, 7.8%)
CIE-LABlab(50.34, 58.05, -66.51)
CIE-LCHlch(50.34, 88.28, 311.12°)
OKLaboklab(59.73% 0.1133 -0.1892)
OKLCHoklch(59.73% 0.221 300.9)
XYZxyz(30.9580, 18.7080, 80.5612)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852EB #A5EB52
analogous
#5259EB #9852EB #E552EB
triadic
#9852EB #EB9852 #52EB98
tetradic
#9852EB #EB5259 #A5EB52 #52EBE5
square
#9852EB #EB5259 #A5EB52 #52EBE5
split-complementary
#9852EB #EBE552 #59EB52
monochromatic
#5B14AE #771BE5 #9852EB #B989F1 #D9C0F8

Accessibility & contrast

On white

4.43
#9852EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#9852EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9852EB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852EB#FFFFFF#000000##000000
##9852EB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9852eb;
/* rgb */ color: rgb(152, 82, 235);
/* oklch */ color: oklch(59.7% 0.221 300.9);
Tailwind
colors: {
  custom: {
    50: '#bc87f2',
    500: '#9852eb',
    950: '#000000',
  },
}
SCSS
$custom: #9852eb;
$custom-light: #bc87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9852eb",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 267.451,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59726,
    "c": 0.22051,
    "h": 300.9
  },
  "luminance": 0.18708
}

Semantic roles & 50–950 ramp

primary
#9852EB
secondary
#CFE8B0
accent
#DC0A7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9852EB

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

Preview Lab → · Contrast checker → · Palette generator →

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