#9865E4#9865E4

#9865E4 is a mid, vivid violet. Relative luminance 0.216; OKLCH L 61.9% C 0.186 H 299.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9865E4
RGBrgb(152, 101, 228)
HSLhsl(264, 70%, 65%)
HSVhsv(264, 56%, 89%)
CMYKcmyk(33.3%, 55.7%, 0%, 10.6%)
CIE-LABlab(53.58, 46.46, -57.35)
CIE-LCHlch(53.58, 73.81, 309.01°)
OKLaboklab(61.94% 0.0917 -0.1623)
OKLCHoklch(61.94% 0.186 299.5)
XYZxyz(31.6028, 21.5839, 75.8849)
Luminance0.2158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9865E4 #B1E465
analogous
#6572E4 #9865E4 #D765E4
triadic
#9865E4 #E49865 #65E498
tetradic
#9865E4 #E46572 #B1E465 #65E4D7
square
#9865E4 #E46572 #B1E465 #65E4D7
split-complementary
#9865E4 #E4D765 #72E465
monochromatic
#591FB0 #7531DB #9865E4 #BB99ED #DECDF6

Accessibility & contrast

On white

3.95
#9865E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#9865E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9865E4
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9865E4#FFFFFF#000000##000000
##9865E41.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D80E8
Deuteranopia (green-blind)
#3F7FE1
Tritanopia (blue-blind)
#887F9B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9865e4;
/* rgb */ color: rgb(152, 101, 228);
/* oklch */ color: oklch(61.9% 0.186 299.5);
Tailwind
colors: {
  custom: {
    50: '#ba93ed',
    500: '#9865e4',
    950: '#000000',
  },
}
SCSS
$custom: #9865e4;
$custom-light: #ba93ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9865e4",
  "rgb": {
    "r": 152,
    "g": 101,
    "b": 228
  },
  "hsl": {
    "h": 264.094,
    "s": 70.166,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61941,
    "c": 0.18644,
    "h": 299.5
  },
  "luminance": 0.21584
}

Semantic roles & 50–950 ramp

primary
#9865E4
secondary
#D7E8BC
accent
#D21386
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9865E4

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

Preview Lab → · Contrast checker → · Palette generator →

#9865E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva