#9862EA#9862EA

#9862EA is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.9% C 0.198 H 298.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9862EA
RGBrgb(152, 98, 234)
HSLhsl(264, 76%, 65%)
HSVhsv(264, 58%, 92%)
CMYKcmyk(35%, 58.1%, 0%, 8.2%)
CIE-LABlab(53.33, 49.59, -61.12)
CIE-LCHlch(53.33, 78.71, 309.05°)
OKLaboklab(61.87% 0.0953 -0.1734)
OKLCHoklch(61.87% 0.198 298.8)
XYZxyz(32.1642, 21.3509, 80.2525)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862EA #B4EA62
analogous
#6270EA #9862EA #DC62EA
triadic
#9862EA #EA9862 #62EA98
tetradic
#9862EA #EA6270 #B4EA62 #62EADC
square
#9862EA #EA6270 #B4EA62 #62EADC
split-complementary
#9862EA #EADC62 #70EA62
monochromatic
#5819B9 #752CE3 #9862EA #BB98F1 #DFCEF8

Accessibility & contrast

On white

3.98
#9862EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#9862EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862EA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862EA#FFFFFF#000000##000000
##9862EA1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#167FEE
Deuteranopia (green-blind)
#337EE7
Tritanopia (blue-blind)
#867F9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9862ea;
/* rgb */ color: rgb(152, 98, 234);
/* oklch */ color: oklch(61.9% 0.198 298.8);
Tailwind
colors: {
  custom: {
    50: '#bb91f1',
    500: '#9862ea',
    950: '#000000',
  },
}
SCSS
$custom: #9862ea;
$custom-light: #bb91f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9862ea",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 234
  },
  "hsl": {
    "h": 263.824,
    "s": 76.404,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61874,
    "c": 0.19788,
    "h": 298.8
  },
  "luminance": 0.21351
}

Semantic roles & 50–950 ramp

primary
#9862EA
secondary
#D9EBBD
accent
#D90D88
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9862EA

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

Preview Lab → · Contrast checker → · Palette generator →

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