#9851E6#9851E6

#9851E6 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.2% C 0.216 H 302.1°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9851E6
RGBrgb(152, 81, 230)
HSLhsl(269, 75%, 61%)
HSVhsv(269, 65%, 90%)
CMYKcmyk(33.9%, 64.8%, 0%, 9.8%)
CIE-LABlab(49.83, 57.35, -64.53)
CIE-LCHlch(49.83, 86.33, 311.63°)
OKLaboklab(59.25% 0.1148 -0.1834)
OKLCHoklch(59.25% 0.216 302.1)
XYZxyz(30.1709, 18.2733, 76.7852)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851E6 #9FE651
analogous
#5154E6 #9851E6 #E351E6
triadic
#9851E6 #E69851 #51E698
tetradic
#9851E6 #E65154 #9FE651 #51E6E3
square
#9851E6 #E65154 #9FE651 #51E6E3
split-complementary
#9851E6 #E6E351 #54E651
monochromatic
#5B18A5 #791FDA #9851E6 #B887EE #D7BCF5

Accessibility & contrast

On white

4.51
#9851E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#9851E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9851E6
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851E6#FFFFFF#000000##000000
##9851E61.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EB
Deuteranopia (green-blind)
#1176E3
Tritanopia (blue-blind)
#887295
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9851e6;
/* rgb */ color: rgb(152, 81, 230);
/* oklch */ color: oklch(59.2% 0.216 302.1);
Tailwind
colors: {
  custom: {
    50: '#bb86ef',
    500: '#9851e6',
    950: '#000000',
  },
}
SCSS
$custom: #9851e6;
$custom-light: #bb86ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9851e6",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 268.591,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59246,
    "c": 0.21637,
    "h": 302.1
  },
  "luminance": 0.18273
}

Semantic roles & 50–950 ramp

primary
#9851E6
secondary
#CBE5AD
accent
#D70E77
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9851E6

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

Preview Lab → · Contrast checker → · Palette generator →

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