#9851BE#9851BE

#9851BE is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.6% C 0.173 H 312.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9851BE
RGBrgb(152, 81, 190)
HSLhsl(279, 46%, 53%)
HSVhsv(279, 57%, 75%)
CMYKcmyk(20%, 57.4%, 0%, 25.5%)
CIE-LABlab(47.34, 48.13, -45.63)
CIE-LCHlch(47.34, 66.33, 316.53°)
OKLaboklab(56.65% 0.1161 -0.128)
OKLCHoklch(56.65% 0.173 312.2)
XYZxyz(25.1839, 16.2786, 50.5206)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851BE #77BE51
analogous
#6151BE #9851BE #BE51AD
triadic
#9851BE #BE9851 #51BE98
tetradic
#9851BE #BE6151 #77BE51 #51ADBE
square
#9851BE #BE6151 #77BE51 #51ADBE
split-complementary
#9851BE #ADBE51 #51BE61
monochromatic
#55286C #773999 #9851BE #B27ECF #CDAADF

Accessibility & contrast

On white

4.93
#9851BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9851BE
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851BE#FFFFFF#000000##FFFFFF
##9851BE1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6DC2
Deuteranopia (green-blind)
#4A72BB
Tritanopia (blue-blind)
#946480
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9851be;
/* rgb */ color: rgb(152, 81, 190);
/* oklch */ color: oklch(56.6% 0.173 312.2);
Tailwind
colors: {
  custom: {
    50: '#b985d2',
    500: '#9851be',
    950: '#000000',
  },
}
SCSS
$custom: #9851be;
$custom-light: #b985d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9851be",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 279.083,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56645,
    "c": 0.17279,
    "h": 312.2
  },
  "luminance": 0.16278
}

Semantic roles & 50–950 ramp

primary
#9851BE
secondary
#AECD9E
accent
#D55380
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #9851BE

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

Preview Lab → · Contrast checker → · Palette generator →

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