#9865CB#9865CB

#9865CB is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.4% C 0.156 H 305.3°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9865CB
RGBrgb(152, 101, 203)
HSLhsl(270, 50%, 60%)
HSVhsv(270, 50%, 80%)
CMYKcmyk(25.1%, 50.2%, 0%, 20.4%)
CIE-LABlab(52.17, 40.36, -45.44)
CIE-LCHlch(52.17, 60.77, 311.61°)
OKLaboklab(60.44% 0.0903 -0.1275)
OKLCHoklch(60.44% 0.156 305.3)
XYZxyz(28.3798, 20.2947, 58.9105)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9865CB #98CB65
analogous
#6565CB #9865CB #CB65CB
triadic
#9865CB #CB9865 #65CB98
tetradic
#9865CB #CB6565 #98CB65 #65CBCB
square
#9865CB #CB6565 #98CB65 #65CBCB
split-complementary
#9865CB #CBCB65 #65CB65
monochromatic
#5B2E88 #793DB6 #9865CB #B793DA #D5C1EA

Accessibility & contrast

On white

4.15
#9865CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9865CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9865CB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9865CB#FFFFFF#000000##000000
##9865CB1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#557DC8
Tritanopia (blue-blind)
#90778F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9865cb;
/* rgb */ color: rgb(152, 101, 203);
/* oklch */ color: oklch(60.4% 0.156 305.3);
Tailwind
colors: {
  custom: {
    50: '#b992db',
    500: '#9865cb',
    950: '#000000',
  },
}
SCSS
$custom: #9865cb;
$custom-light: #b992db;
$custom-dark: #000000;
JSON
{
  "hex": "#9865cb",
  "rgb": {
    "r": 152,
    "g": 101,
    "b": 203
  },
  "hsl": {
    "h": 270,
    "s": 49.515,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60439,
    "c": 0.15619,
    "h": 305.3
  },
  "luminance": 0.20295
}

Semantic roles & 50–950 ramp

primary
#9865CB
secondary
#C6DAB2
accent
#D94F94
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9865CB

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

Preview Lab → · Contrast checker → · Palette generator →

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