#9856E4#9856E4

#9856E4 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.8% C 0.208 H 301.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9856E4
RGBrgb(152, 86, 228)
HSLhsl(268, 72%, 62%)
HSVhsv(268, 62%, 89%)
CMYKcmyk(33.3%, 62.3%, 0%, 10.6%)
CIE-LABlab(50.61, 54.37, -62.14)
CIE-LCHlch(50.61, 82.57, 311.19°)
OKLaboklab(59.77% 0.1094 -0.1764)
OKLCHoklch(59.77% 0.208 301.8)
XYZxyz(30.2770, 18.9323, 75.4430)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856E4 #A2E456
analogous
#565BE4 #9856E4 #DF56E4
triadic
#9856E4 #E49856 #56E498
tetradic
#9856E4 #E4565B #A2E456 #56E4DF
square
#9856E4 #E4565B #A2E456 #56E4DF
split-complementary
#9856E4 #E4DF56 #5BE456
monochromatic
#5B1AA5 #7823DA #9856E4 #B88BEC #D8C0F5

Accessibility & contrast

On white

4.39
#9856E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9856E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9856E4
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856E4#FFFFFF#000000##000000
##9856E41.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#2578E1
Tritanopia (blue-blind)
#897595
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9856e4;
/* rgb */ color: rgb(152, 86, 228);
/* oklch */ color: oklch(59.8% 0.208 301.8);
Tailwind
colors: {
  custom: {
    50: '#bb89ed',
    500: '#9856e4',
    950: '#000000',
  },
}
SCSS
$custom: #9856e4;
$custom-light: #bb89ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9856e4",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 267.887,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59769,
    "c": 0.20757,
    "h": 301.8
  },
  "luminance": 0.18932
}

Semantic roles & 50–950 ramp

primary
#9856E4
secondary
#CDE5B0
accent
#D5117A
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9856E4

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

Preview Lab → · Contrast checker → · Palette generator →

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