#9862E4#9862E4

#9862E4 is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.5% C 0.191 H 300.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9862E4
RGBrgb(152, 98, 228)
HSLhsl(265, 71%, 64%)
HSVhsv(265, 57%, 89%)
CMYKcmyk(33.3%, 57%, 0%, 10.6%)
CIE-LABlab(52.96, 48.09, -58.35)
CIE-LCHlch(52.96, 75.61, 309.50°)
OKLaboklab(61.49% 0.0953 -0.1653)
OKLCHoklch(61.49% 0.191 300)
XYZxyz(31.3168, 21.0120, 75.7896)
Luminance0.2101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862E4 #AEE462
analogous
#626DE4 #9862E4 #D962E4
triadic
#9862E4 #E49862 #62E498
tetradic
#9862E4 #E4626D #AEE462 #62E4D9
square
#9862E4 #E4626D #AEE462 #62E4D9
split-complementary
#9862E4 #E4D962 #6DE462
monochromatic
#5A1EAE #762EDB #9862E4 #BA96ED #DDCAF6

Accessibility & contrast

On white

4.04
#9862E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#9862E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862E4
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862E4#FFFFFF#000000##000000
##9862E41.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#247EE8
Deuteranopia (green-blind)
#3B7EE1
Tritanopia (blue-blind)
#887D9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9862e4;
/* rgb */ color: rgb(152, 98, 228);
/* oklch */ color: oklch(61.5% 0.191 300.0);
Tailwind
colors: {
  custom: {
    50: '#ba91ed',
    500: '#9862e4',
    950: '#000000',
  },
}
SCSS
$custom: #9862e4;
$custom-light: #ba91ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9862e4",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 228
  },
  "hsl": {
    "h": 264.923,
    "s": 70.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61485,
    "c": 0.19079,
    "h": 300
  },
  "luminance": 0.21012
}

Semantic roles & 50–950 ramp

primary
#9862E4
secondary
#D5E8BA
accent
#D31383
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9862E4

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

Preview Lab → · Contrast checker → · Palette generator →

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