#9851CA#9851CA

#9851CA is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.4% C 0.186 H 308.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9851CA
RGBrgb(152, 81, 202)
HSLhsl(275, 53%, 55%)
HSVhsv(275, 60%, 79%)
CMYKcmyk(24.8%, 59.9%, 0%, 20.8%)
CIE-LABlab(48.04, 50.82, -51.45)
CIE-LCHlch(48.04, 72.31, 314.65°)
OKLaboklab(57.38% 0.1163 -0.145)
OKLCHoklch(57.38% 0.186 308.7)
XYZxyz(26.5499, 16.8249, 57.7146)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851CA #83CA51
analogous
#5C51CA #9851CA #CA51BF
triadic
#9851CA #CA9851 #51CA98
tetradic
#9851CA #CA5C51 #83CA51 #51BFCA
square
#9851CA #CA5C51 #83CA51 #51BFCA
split-complementary
#9851CA #BFCA51 #51CA5C
monochromatic
#58257B #7934AA #9851CA #B480D8 #D0AFE7

Accessibility & contrast

On white

4.81
#9851CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#9851CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9851CA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851CA#FFFFFF#000000##FFFFFF
##9851CA1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6FCE
Deuteranopia (green-blind)
#4073C7
Tritanopia (blue-blind)
#916886
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9851ca;
/* rgb */ color: rgb(152, 81, 202);
/* oklch */ color: oklch(57.4% 0.186 308.7);
Tailwind
colors: {
  custom: {
    50: '#ba85db',
    500: '#9851ca',
    950: '#000000',
  },
}
SCSS
$custom: #9851ca;
$custom-light: #ba85db;
$custom-dark: #000000;
JSON
{
  "hex": "#9851ca",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 275.207,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57382,
    "c": 0.18586,
    "h": 308.7
  },
  "luminance": 0.16825
}

Semantic roles & 50–950 ramp

primary
#9851CA
secondary
#B7D5A2
accent
#DD4B87
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9851CA

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

Preview Lab → · Contrast checker → · Palette generator →

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