#9862BB#9862BB

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

Color values

HEX#9862BB
RGBrgb(152, 98, 187)
HSLhsl(276, 40%, 56%)
HSVhsv(276, 48%, 73%)
CMYKcmyk(18.7%, 47.6%, 0%, 26.7%)
CIE-LABlab(50.69, 38.31, -38.59)
CIE-LCHlch(50.69, 54.38, 314.80°)
OKLaboklab(59.07% 0.0926 -0.1075)
OKLCHoklch(59.07% 0.142 310.7)
XYZxyz(26.2846, 18.9991, 49.2866)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862BB #85BB62
analogous
#6B62BB #9862BB #BB62B2
triadic
#9862BB #BB9862 #62BB98
tetradic
#9862BB #BB6B62 #85BB62 #62B2BB
square
#9862BB #BB6B62 #85BB62 #62B2BB
split-complementary
#9862BB #B2BB62 #62BB6B
monochromatic
#583171 #79449C #9862BB #B48DCD #D0B7E0

Accessibility & contrast

On white

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

On black

4.80
#9862BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862BB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862BB#FFFFFF#000000##000000
##9862BB1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9862bb;
/* rgb */ color: rgb(152, 98, 187);
/* oklch */ color: oklch(59.1% 0.142 310.7);
Tailwind
colors: {
  custom: {
    50: '#b890d0',
    500: '#9862bb',
    950: '#000000',
  },
}
SCSS
$custom: #9862bb;
$custom-light: #b890d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9862bb",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 187
  },
  "hsl": {
    "h": 276.404,
    "s": 39.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59066,
    "c": 0.14188,
    "h": 310.7
  },
  "luminance": 0.18999
}

Semantic roles & 50–950 ramp

primary
#9862BB
secondary
#B8CFAA
accent
#CF5887
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#120D14
muted
#817D82

Preview Lab

Preview with #9862BB

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

Preview Lab → · Contrast checker → · Palette generator →

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