#9862E1#9862E1

#9862E1 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 61.3% C 0.187 H 300.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9862E1
RGBrgb(152, 98, 225)
HSLhsl(266, 68%, 63%)
HSVhsv(266, 56%, 88%)
CMYKcmyk(32.4%, 56.4%, 0%, 11.8%)
CIE-LABlab(52.78, 47.35, -56.95)
CIE-LCHlch(52.78, 74.06, 309.74°)
OKLaboklab(61.29% 0.0953 -0.1612)
OKLCHoklch(61.29% 0.187 300.6)
XYZxyz(30.9040, 20.8468, 73.6153)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862E1 #ABE162
analogous
#626BE1 #9862E1 #D762E1
triadic
#9862E1 #E19862 #62E198
tetradic
#9862E1 #E1626B #ABE162 #62E1D7
square
#9862E1 #E1626B #ABE162 #62E1D7
split-complementary
#9862E1 #E1D762 #6BE162
monochromatic
#5A20A8 #762FD7 #9862E1 #BA95EB #DBC9F5

Accessibility & contrast

On white

4.06
#9862E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9862E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862E1
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862E1#FFFFFF#000000##000000
##9862E11.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#297DE5
Deuteranopia (green-blind)
#3E7DDE
Tritanopia (blue-blind)
#897C98
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9862e1;
/* rgb */ color: rgb(152, 98, 225);
/* oklch */ color: oklch(61.3% 0.187 300.6);
Tailwind
colors: {
  custom: {
    50: '#ba91eb',
    500: '#9862e1',
    950: '#000000',
  },
}
SCSS
$custom: #9862e1;
$custom-light: #ba91eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9862e1",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 225
  },
  "hsl": {
    "h": 265.512,
    "s": 67.914,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61294,
    "c": 0.18723,
    "h": 300.6
  },
  "luminance": 0.20847
}

Semantic roles & 50–950 ramp

primary
#9862E1
secondary
#D3E6B9
accent
#D01681
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9862E1

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

Preview Lab → · Contrast checker → · Palette generator →

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