#9862DD#9862DD

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

Color values

HEX#9862DD
RGBrgb(152, 98, 221)
HSLhsl(266, 64%, 63%)
HSVhsv(266, 56%, 87%)
CMYKcmyk(31.2%, 55.7%, 0%, 13.3%)
CIE-LABlab(52.54, 46.36, -55.07)
CIE-LCHlch(52.54, 71.99, 310.09°)
OKLaboklab(61.04% 0.0953 -0.1556)
OKLCHoklch(61.04% 0.182 301.5)
XYZxyz(30.3647, 20.6311, 70.7751)
Luminance0.2063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862DD #A7DD62
analogous
#626ADD #9862DD #D562DD
triadic
#9862DD #DD9862 #62DD98
tetradic
#9862DD #DD626A #A7DD62 #62DDD5
square
#9862DD #DD626A #A7DD62 #62DDD5
split-complementary
#9862DD #DDD562 #6ADD62
monochromatic
#5B23A2 #7730D2 #9862DD #B994E8 #DAC7F3

Accessibility & contrast

On white

4.10
#9862DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#9862DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862DD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862DD#FFFFFF#000000##000000
##9862DD1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7DE1
Deuteranopia (green-blind)
#437DDA
Tritanopia (blue-blind)
#8A7A96
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9862dd;
/* rgb */ color: rgb(152, 98, 221);
/* oklch */ color: oklch(61.0% 0.182 301.5);
Tailwind
colors: {
  custom: {
    50: '#ba90e8',
    500: '#9862dd',
    950: '#000000',
  },
}
SCSS
$custom: #9862dd;
$custom-light: #ba90e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9862dd",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 221
  },
  "hsl": {
    "h": 266.341,
    "s": 64.398,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61043,
    "c": 0.18248,
    "h": 301.5
  },
  "luminance": 0.20631
}

Semantic roles & 50–950 ramp

primary
#9862DD
secondary
#D0E4B7
accent
#CC197E
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9862DD

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

Preview Lab → · Contrast checker → · Palette generator →

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