#9851BC#9851BC

#9851BC is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.5% C 0.171 H 312.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9851BC
RGBrgb(152, 81, 188)
HSLhsl(280, 44%, 53%)
HSVhsv(280, 57%, 74%)
CMYKcmyk(19.1%, 56.9%, 0%, 26.3%)
CIE-LABlab(47.23, 47.70, -44.65)
CIE-LCHlch(47.23, 65.33, 316.89°)
OKLaboklab(56.53% 0.116 -0.1251)
OKLCHoklch(56.53% 0.171 312.9)
XYZxyz(24.9669, 16.1917, 49.3773)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851BC #75BC51
analogous
#6251BC #9851BC #BC51AA
triadic
#9851BC #BC9851 #51BC98
tetradic
#9851BC #BC6251 #75BC51 #51AABC
square
#9851BC #BC6251 #75BC51 #51AABC
split-complementary
#9851BC #AABC51 #51BC62
monochromatic
#54296A #773A96 #9851BC #B27DCD #CCA9DE

Accessibility & contrast

On white

4.95
#9851BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9851BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9851BC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851BC#FFFFFF#000000##FFFFFF
##9851BC1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326CBF
Deuteranopia (green-blind)
#4C72B9
Tritanopia (blue-blind)
#94647F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9851bc;
/* rgb */ color: rgb(152, 81, 188);
/* oklch */ color: oklch(56.5% 0.171 312.9);
Tailwind
colors: {
  custom: {
    50: '#b985d1',
    500: '#9851bc',
    950: '#000000',
  },
}
SCSS
$custom: #9851bc;
$custom-light: #b985d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9851bc",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 279.813,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56526,
    "c": 0.17062,
    "h": 312.9
  },
  "luminance": 0.16191
}

Semantic roles & 50–950 ramp

primary
#9851BC
secondary
#ADCC9D
accent
#D4547F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #9851BC

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

Preview Lab → · Contrast checker → · Palette generator →

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