#9856E7#9856E7

#9856E7 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 60.0% C 0.211 H 301.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#9856E7
RGBrgb(152, 86, 231)
HSLhsl(267, 75%, 62%)
HSVhsv(267, 63%, 91%)
CMYKcmyk(34.2%, 62.8%, 0%, 9.4%)
CIE-LABlab(50.80, 55.10, -63.51)
CIE-LCHlch(50.80, 84.08, 310.94°)
OKLaboklab(59.97% 0.1092 -0.1804)
OKLCHoklch(59.97% 0.211 301.2)
XYZxyz(30.6970, 19.1003, 77.6553)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856E7 #A5E756
analogous
#565DE7 #9856E7 #E056E7
triadic
#9856E7 #E79856 #56E798
tetradic
#9856E7 #E7565D #A5E756 #56E7E0
square
#9856E7 #E7565D #A5E756 #56E7E0
split-complementary
#9856E7 #E7E056 #5DE756
monochromatic
#5B18AA #7720DF #9856E7 #B98CEF #D9C1F6

Accessibility & contrast

On white

4.36
#9856E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#9856E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9856E7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856E7#FFFFFF#000000##000000
##9856E71.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EC
Deuteranopia (green-blind)
#1E78E4
Tritanopia (blue-blind)
#877697
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9856e7;
/* rgb */ color: rgb(152, 86, 231);
/* oklch */ color: oklch(60.0% 0.211 301.2);
Tailwind
colors: {
  custom: {
    50: '#bb89ef',
    500: '#9856e7',
    950: '#000000',
  },
}
SCSS
$custom: #9856e7;
$custom-light: #bb89ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9856e7",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 267.31,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59973,
    "c": 0.21091,
    "h": 301.2
  },
  "luminance": 0.191
}

Semantic roles & 50–950 ramp

primary
#9856E7
secondary
#CFE7B2
accent
#D70E7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9856E7

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

Preview Lab → · Contrast checker → · Palette generator →

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