#9861BA#9861BA

#9861BA is a mid, vivid violet. Relative luminance 0.188; OKLCH L 58.9% C 0.142 H 311.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9861BA
RGBrgb(152, 97, 186)
HSLhsl(277, 39%, 55%)
HSVhsv(277, 48%, 73%)
CMYKcmyk(18.3%, 47.8%, 0%, 27.1%)
CIE-LABlab(50.42, 38.65, -38.43)
CIE-LCHlch(50.42, 54.50, 315.16°)
OKLaboklab(58.85% 0.0939 -0.1071)
OKLCHoklch(58.85% 0.142 311.2)
XYZxyz(26.0849, 18.7704, 48.6938)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9861BA #83BA61
analogous
#6B61BA #9861BA #BA61AF
triadic
#9861BA #BA9861 #61BA98
tetradic
#9861BA #BA6B61 #83BA61 #61AFBA
square
#9861BA #BA6B61 #83BA61 #61AFBA
split-complementary
#9861BA #AFBA61 #61BA6B
monochromatic
#583170 #79439A #9861BA #B48CCD #D0B6DF

Accessibility & contrast

On white

4.42
#9861BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#9861BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9861BA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9861BA#FFFFFF#000000##000000
##9861BA1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C75BD
Deuteranopia (green-blind)
#5C79B8
Tritanopia (blue-blind)
#946F85
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9861ba;
/* rgb */ color: rgb(152, 97, 186);
/* oklch */ color: oklch(58.9% 0.142 311.2);
Tailwind
colors: {
  custom: {
    50: '#b88fcf',
    500: '#9861ba',
    950: '#000000',
  },
}
SCSS
$custom: #9861ba;
$custom-light: #b88fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9861ba",
  "rgb": {
    "r": 152,
    "g": 97,
    "b": 186
  },
  "hsl": {
    "h": 277.079,
    "s": 39.207,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5885,
    "c": 0.14238,
    "h": 311.2
  },
  "luminance": 0.1877
}

Semantic roles & 50–950 ramp

primary
#9861BA
secondary
#B7CEA9
accent
#CF5986
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#120C14
muted
#817D82

Preview Lab

Preview with #9861BA

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

Preview Lab → · Contrast checker → · Palette generator →

#9861BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva