#9862DA#9862DA

#9862DA is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.9% C 0.179 H 302.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9862DA
RGBrgb(152, 98, 218)
HSLhsl(267, 62%, 62%)
HSVhsv(267, 55%, 85%)
CMYKcmyk(30.3%, 55%, 0%, 14.5%)
CIE-LABlab(52.37, 45.63, -53.65)
CIE-LCHlch(52.37, 70.43, 310.38°)
OKLaboklab(60.86% 0.0952 -0.1515)
OKLCHoklch(60.86% 0.179 302.1)
XYZxyz(29.9686, 20.4727, 68.6889)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862DA #A4DA62
analogous
#6268DA #9862DA #D462DA
triadic
#9862DA #DA9862 #62DA98
tetradic
#9862DA #DA6268 #A4DA62 #62DAD4
square
#9862DA #DA6268 #A4DA62 #62DAD4
split-complementary
#9862DA #DAD462 #68DA62
monochromatic
#5B259D #7831CE #9862DA #B894E6 #D9C5F1

Accessibility & contrast

On white

4.12
#9862DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#9862DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862DA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862DA#FFFFFF#000000##000000
##9862DA1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#337CDE
Deuteranopia (green-blind)
#467DD7
Tritanopia (blue-blind)
#8B7995
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9862da;
/* rgb */ color: rgb(152, 98, 218);
/* oklch */ color: oklch(60.9% 0.179 302.1);
Tailwind
colors: {
  custom: {
    50: '#ba90e6',
    500: '#9862da',
    950: '#000000',
  },
}
SCSS
$custom: #9862da;
$custom-light: #ba90e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9862da",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 218
  },
  "hsl": {
    "h": 267,
    "s": 61.856,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60857,
    "c": 0.17891,
    "h": 302.1
  },
  "luminance": 0.20473
}

Semantic roles & 50–950 ramp

primary
#9862DA
secondary
#CEE2B6
accent
#CA1C7B
background
#FBF9FE
surface
#F7F1FC
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9862DA

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

Preview Lab → · Contrast checker → · Palette generator →

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