#9862BC#9862BC

#9862BC is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.1% C 0.143 H 310.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9862BC
RGBrgb(152, 98, 188)
HSLhsl(276, 40%, 56%)
HSVhsv(276, 48%, 74%)
CMYKcmyk(19.1%, 47.9%, 0%, 26.3%)
CIE-LABlab(50.74, 38.54, -39.09)
CIE-LCHlch(50.74, 54.89, 314.60°)
OKLaboklab(59.12% 0.0927 -0.109)
OKLCHoklch(59.12% 0.143 310.4)
XYZxyz(26.3920, 19.0421, 49.8524)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862BC #86BC62
analogous
#6B62BC #9862BC #BC62B3
triadic
#9862BC #BC9862 #62BC98
tetradic
#9862BC #BC6B62 #86BC62 #62B3BC
square
#9862BC #BC6B62 #86BC62 #62B3BC
split-complementary
#9862BC #B3BC62 #62BC6B
monochromatic
#583173 #79439E #9862BC #B48DCE #D0B8E1

Accessibility & contrast

On white

4.37
#9862BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#9862BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862BC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862BC#FFFFFF#000000##000000
##9862BC1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D76BF
Deuteranopia (green-blind)
#5B7ABA
Tritanopia (blue-blind)
#947086
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9862bc;
/* rgb */ color: rgb(152, 98, 188);
/* oklch */ color: oklch(59.1% 0.143 310.4);
Tailwind
colors: {
  custom: {
    50: '#b890d0',
    500: '#9862bc',
    950: '#000000',
  },
}
SCSS
$custom: #9862bc;
$custom-light: #b890d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9862bc",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 188
  },
  "hsl": {
    "h": 276,
    "s": 40.179,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5912,
    "c": 0.14307,
    "h": 310.4
  },
  "luminance": 0.19042
}

Semantic roles & 50–950 ramp

primary
#9862BC
secondary
#B9CFAA
accent
#D05888
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#120D14
muted
#817D82

Preview Lab

Preview with #9862BC

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

Preview Lab → · Contrast checker → · Palette generator →

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