#9862C8#9862C8

#9862C8 is a mid, vivid violet. Relative luminance 0.196; OKLCH L 59.8% C 0.157 H 306.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9862C8
RGBrgb(152, 98, 200)
HSLhsl(272, 48%, 58%)
HSVhsv(272, 51%, 78%)
CMYKcmyk(24%, 51%, 0%, 21.6%)
CIE-LABlab(51.36, 41.31, -45.00)
CIE-LCHlch(51.36, 61.09, 312.55°)
OKLaboklab(59.79% 0.0941 -0.1262)
OKLCHoklch(59.79% 0.157 306.7)
XYZxyz(27.7398, 19.5812, 56.9506)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9862C8 #92C862
analogous
#6562C8 #9862C8 #C862C5
triadic
#9862C8 #C89862 #62C898
tetradic
#9862C8 #C86562 #92C862 #62C5C8
square
#9862C8 #C86562 #92C862 #62C5C8
split-complementary
#9862C8 #C5C862 #62C865
monochromatic
#5A2E82 #7A3DAF #9862C8 #B68FD8 #D3BDE8

Accessibility & contrast

On white

4.27
#9862C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9862C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9862C8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9862C8#FFFFFF#000000##000000
##9862C81.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4478CC
Deuteranopia (green-blind)
#547BC5
Tritanopia (blue-blind)
#91748C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9862c8;
/* rgb */ color: rgb(152, 98, 200);
/* oklch */ color: oklch(59.8% 0.157 306.7);
Tailwind
colors: {
  custom: {
    50: '#b990d9',
    500: '#9862c8',
    950: '#000000',
  },
}
SCSS
$custom: #9862c8;
$custom-light: #b990d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9862c8",
  "rgb": {
    "r": 152,
    "g": 98,
    "b": 200
  },
  "hsl": {
    "h": 271.765,
    "s": 48.113,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59787,
    "c": 0.15739,
    "h": 306.7
  },
  "luminance": 0.19581
}

Semantic roles & 50–950 ramp

primary
#9862C8
secondary
#C2D7AF
accent
#D85090
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120D15
muted
#817D83

Preview Lab

Preview with #9862C8

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

Preview Lab → · Contrast checker → · Palette generator →

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