#9862DF#9862DF

#9862DF is a mid, vivid violet. Relative luminance 0.207; OKLCH L 61.2% C 0.185 H 301.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9862DF
RGBrgb(152, 98, 223)
HSLhsl(266, 66%, 63%)
HSVhsv(266, 56%, 87%)
CMYKcmyk(31.8%, 56.1%, 0%, 12.5%)
CIE-LABlab(52.66, 46.85, -56.01)
CIE-LCHlch(52.66, 73.02, 309.91°)
OKLaboklab(61.17% 0.0953 -0.1584)
OKLCHoklch(61.17% 0.185 301)
XYZxyz(30.6327, 20.7383, 72.1868)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862DF #A9DF62
analogous
#626ADF #9862DF #D762DF
triadic
#9862DF #DF9862 #62DF98
tetradic
#9862DF #DF626A #A9DF62 #62DFD7
square
#9862DF #DF626A #A9DF62 #62DFD7
split-complementary
#9862DF #DFD762 #6ADF62
monochromatic
#5A22A5 #772FD5 #9862DF #B995E9 #DBC8F4

Accessibility & contrast

On white

4.08
#9862DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#9862DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862DF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862DF#FFFFFF#000000##000000
##9862DF1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C7DE3
Deuteranopia (green-blind)
#417DDC
Tritanopia (blue-blind)
#8A7B97
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9862df;
/* rgb */ color: rgb(152, 98, 223);
/* oklch */ color: oklch(61.2% 0.185 301.0);
Tailwind
colors: {
  custom: {
    50: '#ba90ea',
    500: '#9862df',
    950: '#000000',
  },
}
SCSS
$custom: #9862df;
$custom-light: #ba90ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9862df",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 223
  },
  "hsl": {
    "h": 265.92,
    "s": 66.138,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61168,
    "c": 0.18486,
    "h": 301
  },
  "luminance": 0.20738
}

Semantic roles & 50–950 ramp

primary
#9862DF
secondary
#D1E5B8
accent
#CE177F
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9862DF

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

Preview Lab → · Contrast checker → · Palette generator →

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