#9862CA#9862CA

#9862CA is a mid, vivid violet. Relative luminance 0.197; OKLCH L 59.9% C 0.160 H 306.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#9862CA
RGBrgb(152, 98, 202)
HSLhsl(271, 50%, 59%)
HSVhsv(271, 51%, 79%)
CMYKcmyk(24.8%, 51.5%, 0%, 20.8%)
CIE-LABlab(51.47, 41.78, -45.98)
CIE-LCHlch(51.47, 62.13, 312.26°)
OKLaboklab(59.9% 0.0942 -0.129)
OKLCHoklch(59.9% 0.16 306.1)
XYZxyz(27.9750, 19.6753, 58.1896)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862CA #94CA62
analogous
#6462CA #9862CA #CA62C8
triadic
#9862CA #CA9862 #62CA98
tetradic
#9862CA #CA6462 #94CA62 #62C8CA
square
#9862CA #CA6462 #94CA62 #62C8CA
split-complementary
#9862CA #C8CA62 #62CA64
monochromatic
#5A2D85 #7A3CB3 #9862CA #B690D9 #D4BEE9

Accessibility & contrast

On white

4.26
#9862CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#9862CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862CA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862CA#FFFFFF#000000##000000
##9862CA1.004.264.944.94
#FFFFFF4.261.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4379CE
Deuteranopia (green-blind)
#537BC7
Tritanopia (blue-blind)
#90748D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9862ca;
/* rgb */ color: rgb(152, 98, 202);
/* oklch */ color: oklch(59.9% 0.160 306.1);
Tailwind
colors: {
  custom: {
    50: '#b990da',
    500: '#9862ca',
    950: '#000000',
  },
}
SCSS
$custom: #9862ca;
$custom-light: #b990da;
$custom-dark: #000000;
JSON
{
  "hex": "#9862ca",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 202
  },
  "hsl": {
    "h": 271.154,
    "s": 49.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59901,
    "c": 0.15978,
    "h": 306.1
  },
  "luminance": 0.19675
}

Semantic roles & 50–950 ramp

primary
#9862CA
secondary
#C3D8AF
accent
#D94F91
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120D15
muted
#817D83

Preview Lab

Preview with #9862CA

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

Preview Lab → · Contrast checker → · Palette generator →

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