#9862DC#9862DC

#9862DC is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.0% C 0.181 H 301.7°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9862DC
RGBrgb(152, 98, 220)
HSLhsl(267, 64%, 62%)
HSVhsv(267, 55%, 86%)
CMYKcmyk(30.9%, 55.5%, 0%, 13.7%)
CIE-LABlab(52.48, 46.12, -54.60)
CIE-LCHlch(52.48, 71.47, 310.19°)
OKLaboklab(60.98% 0.0952 -0.1543)
OKLCHoklch(60.98% 0.181 301.7)
XYZxyz(30.2319, 20.5780, 70.0755)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862DC #A6DC62
analogous
#6269DC #9862DC #D562DC
triadic
#9862DC #DC9862 #62DC98
tetradic
#9862DC #DC6269 #A6DC62 #62DCD5
square
#9862DC #DC6269 #A6DC62 #62DCD5
split-complementary
#9862DC #DCD562 #69DC62
monochromatic
#5B24A0 #7730D1 #9862DC #B994E7 #DAC6F2

Accessibility & contrast

On white

4.11
#9862DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9862DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862DC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862DC#FFFFFF#000000##000000
##9862DC1.004.115.125.12
#FFFFFF4.111.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#307CE0
Deuteranopia (green-blind)
#447DD9
Tritanopia (blue-blind)
#8B7A96
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9862dc;
/* rgb */ color: rgb(152, 98, 220);
/* oklch */ color: oklch(61.0% 0.181 301.7);
Tailwind
colors: {
  custom: {
    50: '#ba90e7',
    500: '#9862dc',
    950: '#000000',
  },
}
SCSS
$custom: #9862dc;
$custom-light: #ba90e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9862dc",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 266.557,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.6098,
    "c": 0.18129,
    "h": 301.7
  },
  "luminance": 0.20578
}

Semantic roles & 50–950 ramp

primary
#9862DC
secondary
#CFE3B7
accent
#CB1A7D
background
#FBF9FE
surface
#F7F1FC
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9862DC

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

Preview Lab → · Contrast checker → · Palette generator →

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