#9862EB#9862EB

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

Color values

HEX#9862EB
RGBrgb(152, 98, 235)
HSLhsl(264, 77%, 65%)
HSVhsv(264, 58%, 92%)
CMYKcmyk(35.3%, 58.3%, 0%, 7.8%)
CIE-LABlab(53.39, 49.84, -61.58)
CIE-LCHlch(53.39, 79.22, 308.98°)
OKLaboklab(61.94% 0.0953 -0.1748)
OKLCHoklch(61.94% 0.199 298.6)
XYZxyz(32.3083, 21.4086, 81.0113)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862EB #B5EB62
analogous
#6270EB #9862EB #DD62EB
triadic
#9862EB #EB9862 #62EB98
tetradic
#9862EB #EB6270 #B5EB62 #62EBDD
square
#9862EB #EB6270 #B5EB62 #62EBDD
split-complementary
#9862EB #EBDD62 #70EB62
monochromatic
#5818BB #742CE4 #9862EB #BC98F2 #DFCFF9

Accessibility & contrast

On white

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

On black

5.28
#9862EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862EB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862EB#FFFFFF#000000##000000
##9862EB1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1280EF
Deuteranopia (green-blind)
#317EE8
Tritanopia (blue-blind)
#857F9D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9862eb;
/* rgb */ color: rgb(152, 98, 235);
/* oklch */ color: oklch(61.9% 0.199 298.6);
Tailwind
colors: {
  custom: {
    50: '#bb91f2',
    500: '#9862eb',
    950: '#000000',
  },
}
SCSS
$custom: #9862eb;
$custom-light: #bb91f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9862eb",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 235
  },
  "hsl": {
    "h": 263.65,
    "s": 77.401,
    "l": 65.294
  },
  "oklch": {
    "l": 0.61939,
    "c": 0.19905,
    "h": 298.6
  },
  "luminance": 0.21409
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9862EB

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

Preview Lab → · Contrast checker → · Palette generator →

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