#9862E7#9862E7

#9862E7 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.7% C 0.194 H 299.4°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9862E7
RGBrgb(152, 98, 231)
HSLhsl(264, 73%, 65%)
HSVhsv(264, 58%, 91%)
CMYKcmyk(34.2%, 57.6%, 0%, 9.4%)
CIE-LABlab(53.15, 48.84, -59.74)
CIE-LCHlch(53.15, 77.16, 309.27°)
OKLaboklab(61.68% 0.0953 -0.1693)
OKLCHoklch(61.68% 0.194 299.4)
XYZxyz(31.7369, 21.1800, 78.0019)
Luminance0.2118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862E7 #B1E762
analogous
#626FE7 #9862E7 #DB62E7
triadic
#9862E7 #E79862 #62E798
tetradic
#9862E7 #E7626F #B1E762 #62E7DB
square
#9862E7 #E7626F #B1E762 #62E7DB
split-complementary
#9862E7 #E7DB62 #6FE762
monochromatic
#591BB3 #752DDF #9862E7 #BB97EF #DECCF7

Accessibility & contrast

On white

4.01
#9862E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9862E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862E7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862E7#FFFFFF#000000##000000
##9862E71.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E7FEB
Deuteranopia (green-blind)
#377EE4
Tritanopia (blue-blind)
#877E9B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9862e7;
/* rgb */ color: rgb(152, 98, 231);
/* oklch */ color: oklch(61.7% 0.194 299.4);
Tailwind
colors: {
  custom: {
    50: '#bb91ef',
    500: '#9862e7',
    950: '#000000',
  },
}
SCSS
$custom: #9862e7;
$custom-light: #bb91ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9862e7",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 231
  },
  "hsl": {
    "h": 264.361,
    "s": 73.481,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61678,
    "c": 0.19434,
    "h": 299.4
  },
  "luminance": 0.2118
}

Semantic roles & 50–950 ramp

primary
#9862E7
secondary
#D7E9BB
accent
#D61085
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9862E7

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

Preview Lab → · Contrast checker → · Palette generator →

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