#9856DB#9856DB

#9856DB is a mid, vivid violet. Relative luminance 0.184; OKLCH L 59.2% C 0.198 H 303.8°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9856DB
RGBrgb(152, 86, 219)
HSLhsl(270, 65%, 60%)
HSVhsv(270, 61%, 86%)
CMYKcmyk(30.6%, 60.7%, 0%, 14.1%)
CIE-LABlab(50.03, 52.22, -57.97)
CIE-LCHlch(50.03, 78.02, 312.01°)
OKLaboklab(59.17% 0.1099 -0.1641)
OKLCHoklch(59.17% 0.198 303.8)
XYZxyz(29.0600, 18.4455, 69.0335)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856DB #99DB56
analogous
#5657DB #9856DB #DA56DB
triadic
#9856DB #DB9856 #56DB98
tetradic
#9856DB #DB5657 #99DB56 #56DBDA
square
#9856DB #DB5657 #99DB56 #56DBDA
split-complementary
#9856DB #DBDA56 #57DB56
monochromatic
#5B2097 #792BC9 #9856DB #B788E6 #D5BBF0

Accessibility & contrast

On white

4.48
#9856DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#9856DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9856DB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856DB#FFFFFF#000000##000000
##9856DB1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0275DF
Deuteranopia (green-blind)
#3477D8
Tritanopia (blue-blind)
#8C7191
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9856db;
/* rgb */ color: rgb(152, 86, 219);
/* oklch */ color: oklch(59.2% 0.198 303.8);
Tailwind
colors: {
  custom: {
    50: '#ba89e7',
    500: '#9856db',
    950: '#000000',
  },
}
SCSS
$custom: #9856db;
$custom-light: #ba89e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9856db",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 269.774,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59167,
    "c": 0.19752,
    "h": 303.8
  },
  "luminance": 0.18445
}

Semantic roles & 50–950 ramp

primary
#9856DB
secondary
#C7E0AD
accent
#E84095
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9856DB

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

Preview Lab → · Contrast checker → · Palette generator →

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