#9851BF#9851BF

#9851BF is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.7% C 0.174 H 311.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9851BF
RGBrgb(152, 81, 191)
HSLhsl(279, 46%, 53%)
HSVhsv(279, 58%, 75%)
CMYKcmyk(20.4%, 57.6%, 0%, 25.1%)
CIE-LABlab(47.39, 48.36, -46.12)
CIE-LCHlch(47.39, 66.82, 316.36°)
OKLaboklab(56.71% 0.1162 -0.1294)
OKLCHoklch(56.71% 0.174 311.9)
XYZxyz(25.2936, 16.3224, 51.0982)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851BF #78BF51
analogous
#6151BF #9851BF #BF51AF
triadic
#9851BF #BF9851 #51BF98
tetradic
#9851BF #BF6151 #78BF51 #51AFBF
square
#9851BF #BF6151 #78BF51 #51AFBF
split-complementary
#9851BF #AFBF51 #51BF61
monochromatic
#55286D #78399A #9851BF #B27ECF #CDAAE0

Accessibility & contrast

On white

4.92
#9851BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9851BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9851BF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851BF#FFFFFF#000000##FFFFFF
##9851BF1.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6DC3
Deuteranopia (green-blind)
#4972BC
Tritanopia (blue-blind)
#946580
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9851bf;
/* rgb */ color: rgb(152, 81, 191);
/* oklch */ color: oklch(56.7% 0.174 311.9);
Tailwind
colors: {
  custom: {
    50: '#b985d3',
    500: '#9851bf',
    950: '#000000',
  },
}
SCSS
$custom: #9851bf;
$custom-light: #b985d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9851bf",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 278.727,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56705,
    "c": 0.17388,
    "h": 311.9
  },
  "luminance": 0.16322
}

Semantic roles & 50–950 ramp

primary
#9851BF
secondary
#AFCE9E
accent
#D65281
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#120B14
muted
#817C83

Preview Lab

Preview with #9851BF

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

Preview Lab → · Contrast checker → · Palette generator →

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