#9851DD#9851DD

#9851DD is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.6% C 0.207 H 304.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#9851DD
RGBrgb(152, 81, 221)
HSLhsl(270, 67%, 59%)
HSVhsv(270, 63%, 87%)
CMYKcmyk(31.2%, 63.3%, 0%, 13.3%)
CIE-LABlab(49.23, 55.21, -60.40)
CIE-LCHlch(49.23, 81.83, 312.43°)
OKLaboklab(58.63% 0.1156 -0.1712)
OKLCHoklch(58.63% 0.207 304)
XYZxyz(28.9395, 17.7808, 70.3000)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851DD #96DD51
analogous
#5251DD #9851DD #DD51DC
triadic
#9851DD #DD9851 #51DD98
tetradic
#9851DD #DD5251 #96DD51 #51DCDD
square
#9851DD #DD5251 #96DD51 #51DCDD
split-complementary
#9851DD #DCDD51 #51DD52
monochromatic
#5B1D96 #7A27C9 #9851DD #B684E7 #D5B7F1

Accessibility & contrast

On white

4.61
#9851DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#9851DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9851DD
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851DD#FFFFFF#000000##FFFFFF
##9851DD1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E1
Deuteranopia (green-blind)
#2875DA
Tritanopia (blue-blind)
#8B6F90
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9851dd;
/* rgb */ color: rgb(152, 81, 221);
/* oklch */ color: oklch(58.6% 0.207 304.0);
Tailwind
colors: {
  custom: {
    50: '#bb86e8',
    500: '#9851dd',
    950: '#000000',
  },
}
SCSS
$custom: #9851dd;
$custom-light: #bb86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9851dd",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 270.429,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58626,
    "c": 0.20659,
    "h": 304
  },
  "luminance": 0.17781
}

Semantic roles & 50–950 ramp

primary
#9851DD
secondary
#C5E0AA
accent
#EA3E93
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9851DD

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

Preview Lab → · Contrast checker → · Palette generator →

#9851DD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva