#9856E2#9856E2

#9856E2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.6% C 0.205 H 302.2°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9856E2
RGBrgb(152, 86, 226)
HSLhsl(268, 71%, 61%)
HSVhsv(268, 62%, 89%)
CMYKcmyk(32.7%, 61.9%, 0%, 11.4%)
CIE-LABlab(50.48, 53.89, -61.22)
CIE-LCHlch(50.48, 81.56, 311.36°)
OKLaboklab(59.63% 0.1096 -0.1737)
OKLCHoklch(59.63% 0.205 302.2)
XYZxyz(30.0009, 18.8219, 73.9892)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856E2 #A0E256
analogous
#565AE2 #9856E2 #DE56E2
triadic
#9856E2 #E29856 #56E298
tetradic
#9856E2 #E2565A #A0E256 #56E2DE
square
#9856E2 #E2565A #A0E256 #56E2DE
split-complementary
#9856E2 #E2DE56 #5AE256
monochromatic
#5B1CA2 #7825D6 #9856E2 #B88AEB #D8BEF4

Accessibility & contrast

On white

4.41
#9856E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#9856E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9856E2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856E2#FFFFFF#000000##000000
##9856E21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#2978DF
Tritanopia (blue-blind)
#897494
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9856e2;
/* rgb */ color: rgb(152, 86, 226);
/* oklch */ color: oklch(59.6% 0.205 302.2);
Tailwind
colors: {
  custom: {
    50: '#bb89ec',
    500: '#9856e2',
    950: '#000000',
  },
}
SCSS
$custom: #9856e2;
$custom-light: #bb89ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9856e2",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 268.286,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.59633,
    "c": 0.20534,
    "h": 302.2
  },
  "luminance": 0.18822
}

Semantic roles & 50–950 ramp

primary
#9856E2
secondary
#CBE4B0
accent
#D31378
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9856E2

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

Preview Lab → · Contrast checker → · Palette generator →

#9856E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva