#9852EF#9852EF

#9852EF is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 60.0% C 0.225 H 300.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9852EF
RGBrgb(152, 82, 239)
HSLhsl(267, 83%, 63%)
HSVhsv(267, 66%, 94%)
CMYKcmyk(36.4%, 65.7%, 0%, 6.3%)
CIE-LABlab(50.62, 59.02, -68.31)
CIE-LCHlch(50.62, 90.27, 310.83°)
OKLaboklab(60.01% 0.1128 -0.1945)
OKLCHoklch(60.01% 0.225 300.1)
XYZxyz(31.5424, 18.9417, 83.6389)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852EF #A9EF52
analogous
#525AEF #9852EF #E752EF
triadic
#9852EF #EF9852 #52EF98
tetradic
#9852EF #EF525A #A9EF52 #52EFE7
square
#9852EF #EF525A #A9EF52 #52EFE7
split-complementary
#9852EF #EFE752 #5AEF52
monochromatic
#5A11B6 #771AEA #9852EF #B98AF4 #DBC2F9

Accessibility & contrast

On white

4.39
#9852EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9852EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9852EF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852EF#FFFFFF#000000##000000
##9852EF1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F4
Deuteranopia (green-blind)
#0077EC
Tritanopia (blue-blind)
#85769A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9852ef;
/* rgb */ color: rgb(152, 82, 239);
/* oklch */ color: oklch(60.0% 0.225 300.1);
Tailwind
colors: {
  custom: {
    50: '#bc87f5',
    500: '#9852ef',
    950: '#000000',
  },
}
SCSS
$custom: #9852ef;
$custom-light: #bc87f5;
$custom-dark: #000000;
JSON
{
  "hex": "#9852ef",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 266.752,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60011,
    "c": 0.22485,
    "h": 300.1
  },
  "luminance": 0.18942
}

Semantic roles & 50–950 ramp

primary
#9852EF
secondary
#D1EBB2
accent
#DF067F
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9852EF

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

Preview Lab → · Contrast checker → · Palette generator →

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