#9862CE#9862CE

#9862CE is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.1% C 0.165 H 305.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9862CE
RGBrgb(152, 98, 206)
HSLhsl(270, 52%, 60%)
HSVhsv(270, 52%, 81%)
CMYKcmyk(26.2%, 52.4%, 0%, 19.2%)
CIE-LABlab(51.69, 42.73, -47.92)
CIE-LCHlch(51.69, 64.20, 311.73°)
OKLaboklab(60.13% 0.0945 -0.1347)
OKLCHoklch(60.13% 0.165 305.1)
XYZxyz(28.4548, 19.8672, 60.7163)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862CE #98CE62
analogous
#6262CE #9862CE #CE62CE
triadic
#9862CE #CE9862 #62CE98
tetradic
#9862CE #CE6262 #98CE62 #62CECE
square
#9862CE #CE6262 #98CE62 #62CECE
split-complementary
#9862CE #CECE62 #62CE62
monochromatic
#5B2B8A #793AB9 #9862CE #B791DD #D5BFEB

Accessibility & contrast

On white

4.22
#9862CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9862CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862CE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862CE#FFFFFF#000000##000000
##9862CE1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7AD2
Deuteranopia (green-blind)
#507BCB
Tritanopia (blue-blind)
#8F768F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9862ce;
/* rgb */ color: rgb(152, 98, 206);
/* oklch */ color: oklch(60.1% 0.165 305.1);
Tailwind
colors: {
  custom: {
    50: '#b990dd',
    500: '#9862ce',
    950: '#000000',
  },
}
SCSS
$custom: #9862ce;
$custom-light: #b990dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9862ce",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 206
  },
  "hsl": {
    "h": 270,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60134,
    "c": 0.16457,
    "h": 305.1
  },
  "luminance": 0.19867
}

Semantic roles & 50–950 ramp

primary
#9862CE
secondary
#C6DBB1
accent
#DC4C94
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120D15
muted
#817D83

Preview Lab

Preview with #9862CE

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

Preview Lab → · Contrast checker → · Palette generator →

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