#9851CD#9851CD

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

Color values

HEX#9851CD
RGBrgb(152, 81, 205)
HSLhsl(274, 55%, 56%)
HSVhsv(274, 60%, 80%)
CMYKcmyk(25.9%, 60.5%, 0%, 19.6%)
CIE-LABlab(48.22, 51.50, -52.88)
CIE-LCHlch(48.22, 73.82, 314.24°)
OKLaboklab(57.57% 0.1163 -0.1492)
OKLCHoklch(57.57% 0.189 307.9)
XYZxyz(26.9085, 16.9684, 59.6035)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851CD #86CD51
analogous
#5A51CD #9851CD #CD51C4
triadic
#9851CD #CD9851 #51CD98
tetradic
#9851CD #CD5A51 #86CD51 #51C4CD
square
#9851CD #CD5A51 #86CD51 #51C4CD
split-complementary
#9851CD #C4CD51 #51CD5A
monochromatic
#58257F #7932AF #9851CD #B481DB #D0B0E8

Accessibility & contrast

On white

4.78
#9851CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#9851CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9851CD
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851CD#FFFFFF#000000##FFFFFF
##9851CD1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1870D1
Deuteranopia (green-blind)
#3D73CA
Tritanopia (blue-blind)
#906987
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9851cd;
/* rgb */ color: rgb(152, 81, 205);
/* oklch */ color: oklch(57.6% 0.189 307.9);
Tailwind
colors: {
  custom: {
    50: '#ba85dd',
    500: '#9851cd',
    950: '#000000',
  },
}
SCSS
$custom: #9851cd;
$custom-light: #ba85dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9851cd",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 274.355,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57572,
    "c": 0.18914,
    "h": 307.9
  },
  "luminance": 0.16968
}

Semantic roles & 50–950 ramp

primary
#9851CD
secondary
#B9D7A3
accent
#DF4989
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9851CD

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

Preview Lab → · Contrast checker → · Palette generator →

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