#9862EC#9862EC

#9862EC is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.0% C 0.200 H 298.4°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9862EC
RGBrgb(152, 98, 236)
HSLhsl(263, 78%, 65%)
HSVhsv(263, 58%, 93%)
CMYKcmyk(35.6%, 58.5%, 0%, 7.5%)
CIE-LABlab(53.46, 50.09, -62.04)
CIE-LCHlch(53.46, 79.74, 308.91°)
OKLaboklab(62.01% 0.0953 -0.1761)
OKLCHoklch(62.01% 0.2 298.4)
XYZxyz(32.4531, 21.4665, 81.7743)
Luminance0.2147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862EC #B6EC62
analogous
#6271EC #9862EC #DD62EC
triadic
#9862EC #EC9862 #62EC98
tetradic
#9862EC #EC6271 #B6EC62 #62ECDD
square
#9862EC #EC6271 #B6EC62 #62ECDD
split-complementary
#9862EC #ECDD62 #71EC62
monochromatic
#5817BD #742BE5 #9862EC #BC99F3 #E0CFF9

Accessibility & contrast

On white

3.97
#9862EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#9862EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862EC
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862EC#FFFFFF#000000##000000
##9862EC1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E80F0
Deuteranopia (green-blind)
#307EE9
Tritanopia (blue-blind)
#857F9E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9862ec;
/* rgb */ color: rgb(152, 98, 236);
/* oklch */ color: oklch(62.0% 0.200 298.4);
Tailwind
colors: {
  custom: {
    50: '#bb91f3',
    500: '#9862ec',
    950: '#000000',
  },
}
SCSS
$custom: #9862ec;
$custom-light: #bb91f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9862ec",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 236
  },
  "hsl": {
    "h": 263.478,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.62005,
    "c": 0.20023,
    "h": 298.4
  },
  "luminance": 0.21467
}

Semantic roles & 50–950 ramp

primary
#9862EC
secondary
#DAECBE
accent
#DB0B89
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9862EC

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

Preview Lab → · Contrast checker → · Palette generator →

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