#9862DB#9862DB

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

Color values

HEX#9862DB
RGBrgb(152, 98, 219)
HSLhsl(267, 63%, 62%)
HSVhsv(267, 55%, 86%)
CMYKcmyk(30.6%, 55.3%, 0%, 14.1%)
CIE-LABlab(52.43, 45.87, -54.13)
CIE-LCHlch(52.43, 70.95, 310.28°)
OKLaboklab(60.92% 0.0952 -0.1529)
OKLCHoklch(60.92% 0.18 301.9)
XYZxyz(30.0998, 20.5252, 69.3801)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862DB #A5DB62
analogous
#6269DB #9862DB #D562DB
triadic
#9862DB #DB9862 #62DB98
tetradic
#9862DB #DB6269 #A5DB62 #62DBD5
square
#9862DB #DB6269 #A5DB62 #62DBD5
split-complementary
#9862DB #DBD562 #69DB62
monochromatic
#5B249E #7730D0 #9862DB #B994E6 #D9C6F2

Accessibility & contrast

On white

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

On black

5.10
#9862DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862DB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862DB#FFFFFF#000000##000000
##9862DB1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#317CDF
Deuteranopia (green-blind)
#457DD8
Tritanopia (blue-blind)
#8B7A95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9862db;
/* rgb */ color: rgb(152, 98, 219);
/* oklch */ color: oklch(60.9% 0.180 301.9);
Tailwind
colors: {
  custom: {
    50: '#ba90e7',
    500: '#9862db',
    950: '#000000',
  },
}
SCSS
$custom: #9862db;
$custom-light: #ba90e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9862db",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 266.777,
    "s": 62.694,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60918,
    "c": 0.1801,
    "h": 301.9
  },
  "luminance": 0.20525
}

Semantic roles & 50–950 ramp

primary
#9862DB
secondary
#CFE3B6
accent
#CA1B7C
background
#FBF9FE
surface
#F7F1FC
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9862DB

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

Preview Lab → · Contrast checker → · Palette generator →

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