#9856CA#9856CA

#9856CA is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.1% C 0.178 H 308.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9856CA
RGBrgb(152, 86, 202)
HSLhsl(274, 52%, 56%)
HSVhsv(274, 57%, 79%)
CMYKcmyk(24.8%, 57.4%, 0%, 20.8%)
CIE-LABlab(49.00, 48.24, -49.91)
CIE-LCHlch(49.00, 69.41, 314.03°)
OKLaboklab(58.09% 0.11 -0.1405)
OKLCHoklch(58.09% 0.178 308.1)
XYZxyz(26.9352, 17.5956, 57.8430)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856CA #88CA56
analogous
#5E56CA #9856CA #CA56C2
triadic
#9856CA #CA9856 #56CA98
tetradic
#9856CA #CA5E56 #88CA56 #56C2CA
square
#9856CA #CA5E56 #88CA56 #56C2CA
split-complementary
#9856CA #C2CA56 #56CA5E
monochromatic
#59287E #7A36AD #9856CA #B485D9 #D1B3E7

Accessibility & contrast

On white

4.65
#9856CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#9856CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9856CA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856CA#FFFFFF#000000##FFFFFF
##9856CA1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C72CE
Deuteranopia (green-blind)
#4675C7
Tritanopia (blue-blind)
#916C88
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9856ca;
/* rgb */ color: rgb(152, 86, 202);
/* oklch */ color: oklch(58.1% 0.178 308.1);
Tailwind
colors: {
  custom: {
    50: '#b988db',
    500: '#9856ca',
    950: '#000000',
  },
}
SCSS
$custom: #9856ca;
$custom-light: #b988db;
$custom-dark: #000000;
JSON
{
  "hex": "#9856ca",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 274.138,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.58085,
    "c": 0.17844,
    "h": 308.1
  },
  "luminance": 0.17595
}

Semantic roles & 50–950 ramp

primary
#9856CA
secondary
#BBD6A6
accent
#DC4C8A
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9856CA

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

Preview Lab → · Contrast checker → · Palette generator →

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