#9856DA#9856DA

#9856DA is a mid, vivid violet. Relative luminance 0.184; OKLCH L 59.1% C 0.196 H 304.0°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9856DA
RGBrgb(152, 86, 218)
HSLhsl(270, 64%, 60%)
HSVhsv(270, 61%, 85%)
CMYKcmyk(30.3%, 60.6%, 0%, 14.5%)
CIE-LABlab(49.97, 51.98, -57.50)
CIE-LCHlch(49.97, 77.51, 312.11°)
OKLaboklab(59.1% 0.1099 -0.1628)
OKLCHoklch(59.1% 0.196 304)
XYZxyz(28.9287, 18.3930, 68.3423)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856DA #98DA56
analogous
#5656DA #9856DA #DA56DA
triadic
#9856DA #DA9856 #56DA98
tetradic
#9856DA #DA5656 #98DA56 #56DADA
square
#9856DA #DA5656 #98DA56 #56DADA
split-complementary
#9856DA #DADA56 #56DA56
monochromatic
#5B2195 #792CC7 #9856DA #B788E5 #D5BAF0

Accessibility & contrast

On white

4.49
#9856DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#9856DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9856DA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856DA#FFFFFF#000000##000000
##9856DA1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0775DE
Deuteranopia (green-blind)
#3577D7
Tritanopia (blue-blind)
#8C7190
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9856da;
/* rgb */ color: rgb(152, 86, 218);
/* oklch */ color: oklch(59.1% 0.196 304.0);
Tailwind
colors: {
  custom: {
    50: '#ba89e6',
    500: '#9856da',
    950: '#000000',
  },
}
SCSS
$custom: #9856da;
$custom-light: #ba89e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9856da",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 218
  },
  "hsl": {
    "h": 270,
    "s": 64.078,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59102,
    "c": 0.1964,
    "h": 304
  },
  "luminance": 0.18393
}

Semantic roles & 50–950 ramp

primary
#9856DA
secondary
#C6E0AC
accent
#E74194
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9856DA

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

Preview Lab → · Contrast checker → · Palette generator →

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