#9862CD#9862CD

#9862CD is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.1% C 0.163 H 305.3°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9862CD
RGBrgb(152, 98, 205)
HSLhsl(270, 52%, 59%)
HSVhsv(270, 52%, 80%)
CMYKcmyk(25.9%, 52.2%, 0%, 19.6%)
CIE-LABlab(51.63, 42.49, -47.43)
CIE-LCHlch(51.63, 63.68, 311.86°)
OKLaboklab(60.08% 0.0945 -0.1333)
OKLCHoklch(60.08% 0.163 305.3)
XYZxyz(28.3337, 19.8187, 60.0785)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862CD #97CD62
analogous
#6362CD #9862CD #CD62CD
triadic
#9862CD #CD9862 #62CD98
tetradic
#9862CD #CD6362 #97CD62 #62CDCD
square
#9862CD #CD6362 #97CD62 #62CDCD
split-complementary
#9862CD #CDCD62 #62CD63
monochromatic
#5B2C89 #793AB7 #9862CD #B690DC #D5BFEB

Accessibility & contrast

On white

4.23
#9862CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#9862CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862CD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862CD#FFFFFF#000000##000000
##9862CD1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4079D1
Deuteranopia (green-blind)
#517BCA
Tritanopia (blue-blind)
#8F758E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9862cd;
/* rgb */ color: rgb(152, 98, 205);
/* oklch */ color: oklch(60.1% 0.163 305.3);
Tailwind
colors: {
  custom: {
    50: '#b990dd',
    500: '#9862cd',
    950: '#000000',
  },
}
SCSS
$custom: #9862cd;
$custom-light: #b990dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9862cd",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 205
  },
  "hsl": {
    "h": 270.28,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60076,
    "c": 0.16337,
    "h": 305.3
  },
  "luminance": 0.19819
}

Semantic roles & 50–950 ramp

primary
#9862CD
secondary
#C5DAB1
accent
#DB4D93
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120D15
muted
#817D83

Preview Lab

Preview with #9862CD

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

Preview Lab → · Contrast checker → · Palette generator →

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