#9851CB#9851CB

#9851CB is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.4% C 0.187 H 308.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9851CB
RGBrgb(152, 81, 203)
HSLhsl(275, 54%, 56%)
HSVhsv(275, 60%, 80%)
CMYKcmyk(25.1%, 60.1%, 0%, 20.4%)
CIE-LABlab(48.10, 51.05, -51.93)
CIE-LCHlch(48.10, 72.81, 314.51°)
OKLaboklab(57.45% 0.1163 -0.1464)
OKLCHoklch(57.45% 0.187 308.5)
XYZxyz(26.6687, 16.8725, 58.3401)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851CB #84CB51
analogous
#5B51CB #9851CB #CB51C1
triadic
#9851CB #CB9851 #51CB98
tetradic
#9851CB #CB5B51 #84CB51 #51C1CB
square
#9851CB #CB5B51 #84CB51 #51C1CB
split-complementary
#9851CB #C1CB51 #51CB5B
monochromatic
#58257C #7933AC #9851CB #B480D9 #D0AFE7

Accessibility & contrast

On white

4.80
#9851CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9851CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9851CB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851CB#FFFFFF#000000##FFFFFF
##9851CB1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6FCF
Deuteranopia (green-blind)
#3F73C8
Tritanopia (blue-blind)
#916986
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9851cb;
/* rgb */ color: rgb(152, 81, 203);
/* oklch */ color: oklch(57.4% 0.187 308.5);
Tailwind
colors: {
  custom: {
    50: '#ba85db',
    500: '#9851cb',
    950: '#000000',
  },
}
SCSS
$custom: #9851cb;
$custom-light: #ba85db;
$custom-dark: #000000;
JSON
{
  "hex": "#9851cb",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 274.918,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57445,
    "c": 0.18696,
    "h": 308.5
  },
  "luminance": 0.16872
}

Semantic roles & 50–950 ramp

primary
#9851CB
secondary
#B8D5A3
accent
#DD4A88
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9851CB

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

Preview Lab → · Contrast checker → · Palette generator →

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