#9851CE#9851CE

#9851CE is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.6% C 0.190 H 307.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9851CE
RGBrgb(152, 81, 206)
HSLhsl(274, 56%, 56%)
HSVhsv(274, 61%, 81%)
CMYKcmyk(26.2%, 60.7%, 0%, 19.2%)
CIE-LABlab(48.28, 51.73, -53.36)
CIE-LCHlch(48.28, 74.32, 314.11°)
OKLaboklab(57.64% 0.1163 -0.1506)
OKLCHoklch(57.64% 0.19 307.7)
XYZxyz(27.0296, 17.0168, 60.2412)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851CE #87CE51
analogous
#5A51CE #9851CE #CE51C6
triadic
#9851CE #CE9851 #51CE98
tetradic
#9851CE #CE5A51 #87CE51 #51C6CE
square
#9851CE #CE5A51 #87CE51 #51C6CE
split-complementary
#9851CE #C6CE51 #51CE5A
monochromatic
#592480 #7A32B0 #9851CE #B481DB #D1B1E9

Accessibility & contrast

On white

4.77
#9851CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#9851CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9851CE
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851CE#FFFFFF#000000##FFFFFF
##9851CE1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1670D2
Deuteranopia (green-blind)
#3C73CB
Tritanopia (blue-blind)
#906A88
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9851ce;
/* rgb */ color: rgb(152, 81, 206);
/* oklch */ color: oklch(57.6% 0.190 307.7);
Tailwind
colors: {
  custom: {
    50: '#ba85de',
    500: '#9851ce',
    950: '#000000',
  },
}
SCSS
$custom: #9851ce;
$custom-light: #ba85de;
$custom-dark: #000000;
JSON
{
  "hex": "#9851ce",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 274.08,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57636,
    "c": 0.19023,
    "h": 307.7
  },
  "luminance": 0.17016
}

Semantic roles & 50–950 ramp

primary
#9851CE
secondary
#BAD7A4
accent
#DF488A
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9851CE

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

Preview Lab → · Contrast checker → · Palette generator →

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