#9864B7#9864B7

#9864B7 is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.2% C 0.134 H 311.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9864B7
RGBrgb(152, 100, 183)
HSLhsl(278, 37%, 55%)
HSVhsv(278, 45%, 72%)
CMYKcmyk(16.9%, 45.4%, 0%, 28.2%)
CIE-LABlab(50.93, 36.29, -35.89)
CIE-LCHlch(50.93, 51.04, 315.32°)
OKLaboklab(59.19% 0.0891 -0.0997)
OKLCHoklch(59.19% 0.134 311.8)
XYZxyz(26.0518, 19.2091, 47.1259)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864B7 #83B764
analogous
#6E64B7 #9864B7 #B764AD
triadic
#9864B7 #B79864 #64B798
tetradic
#9864B7 #B76E64 #83B764 #64ADB7
square
#9864B7 #B76E64 #83B764 #64ADB7
split-complementary
#9864B7 #ADB764 #64B76E
monochromatic
#58336E #794697 #9864B7 #B48ECA #D0B8DE

Accessibility & contrast

On white

4.34
#9864B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#9864B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864B7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864B7#FFFFFF#000000##000000
##9864B71.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5277BA
Deuteranopia (green-blind)
#607AB5
Tritanopia (blue-blind)
#957185
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9864b7;
/* rgb */ color: rgb(152, 100, 183);
/* oklch */ color: oklch(59.2% 0.134 311.8);
Tailwind
colors: {
  custom: {
    50: '#b891cd',
    500: '#9864b7',
    950: '#000000',
  },
}
SCSS
$custom: #9864b7;
$custom-light: #b891cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9864b7",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 183
  },
  "hsl": {
    "h": 277.59,
    "s": 36.564,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59185,
    "c": 0.13372,
    "h": 311.8
  },
  "luminance": 0.19209
}

Semantic roles & 50–950 ramp

primary
#9864B7
secondary
#B7CDAA
accent
#CD5B86
background
#FBF9FC
surface
#F6F1F9
border
#D0CBD2
text
#110D13
muted
#807E82

Preview Lab

Preview with #9864B7

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

Preview Lab → · Contrast checker → · Palette generator →

#9864B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva