#9862BA#9862BA

#9862BA is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.0% C 0.141 H 311.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9862BA
RGBrgb(152, 98, 186)
HSLhsl(277, 39%, 56%)
HSVhsv(277, 47%, 73%)
CMYKcmyk(18.3%, 47.3%, 0%, 27.1%)
CIE-LABlab(50.64, 38.09, -38.09)
CIE-LCHlch(50.64, 53.86, 315.00°)
OKLaboklab(59.01% 0.0924 -0.1061)
OKLCHoklch(59.01% 0.141 311.1)
XYZxyz(26.1779, 18.9564, 48.7248)
Luminance0.1896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862BA #84BA62
analogous
#6C62BA #9862BA #BA62B0
triadic
#9862BA #BA9862 #62BA98
tetradic
#9862BA #BA6C62 #84BA62 #62B0BA
square
#9862BA #BA6C62 #84BA62 #62B0BA
split-complementary
#9862BA #B0BA62 #62BA6C
monochromatic
#583170 #79449B #9862BA #B48DCD #D0B7DF

Accessibility & contrast

On white

4.38
#9862BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9862BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862BA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862BA#FFFFFF#000000##000000
##9862BA1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BD
Deuteranopia (green-blind)
#5D7AB8
Tritanopia (blue-blind)
#947085
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9862ba;
/* rgb */ color: rgb(152, 98, 186);
/* oklch */ color: oklch(59.0% 0.141 311.1);
Tailwind
colors: {
  custom: {
    50: '#b890cf',
    500: '#9862ba',
    950: '#000000',
  },
}
SCSS
$custom: #9862ba;
$custom-light: #b890cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9862ba",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 276.818,
    "s": 38.938,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59013,
    "c": 0.14069,
    "h": 311.1
  },
  "luminance": 0.18956
}

Semantic roles & 50–950 ramp

primary
#9862BA
secondary
#B8CEAA
accent
#CF5987
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#120D14
muted
#817D82

Preview Lab

Preview with #9862BA

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

Preview Lab → · Contrast checker → · Palette generator →

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