#9851E8#9851E8

#9851E8 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.4% C 0.219 H 301.6°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9851E8
RGBrgb(152, 81, 232)
HSLhsl(268, 77%, 61%)
HSVhsv(268, 65%, 91%)
CMYKcmyk(34.5%, 65.1%, 0%, 9%)
CIE-LABlab(49.96, 57.82, -65.44)
CIE-LCHlch(49.96, 87.32, 311.47°)
OKLaboklab(59.39% 0.1146 -0.1861)
OKLCHoklch(59.39% 0.219 301.6)
XYZxyz(30.4533, 18.3863, 78.2728)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851E8 #A1E851
analogous
#5156E8 #9851E8 #E451E8
triadic
#9851E8 #E89851 #51E898
tetradic
#9851E8 #E85156 #A1E851 #51E8E4
square
#9851E8 #E85156 #A1E851 #51E8E4
split-complementary
#9851E8 #E8E451 #56E851
monochromatic
#5B16A8 #781DDE #9851E8 #B887EF #D8BDF6

Accessibility & contrast

On white

4.49
#9851E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#9851E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9851E8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851E8#FFFFFF#000000##000000
##9851E81.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076ED
Deuteranopia (green-blind)
#0776E5
Tritanopia (blue-blind)
#877396
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9851e8;
/* rgb */ color: rgb(152, 81, 232);
/* oklch */ color: oklch(59.4% 0.219 301.6);
Tailwind
colors: {
  custom: {
    50: '#bc86f0',
    500: '#9851e8',
    950: '#000000',
  },
}
SCSS
$custom: #9851e8;
$custom-light: #bc86f0;
$custom-dark: #000000;
JSON
{
  "hex": "#9851e8",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 268.212,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59387,
    "c": 0.21854,
    "h": 301.6
  },
  "luminance": 0.18386
}

Semantic roles & 50–950 ramp

primary
#9851E8
secondary
#CCE7AE
accent
#D90D79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #9851E8

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

Preview Lab → · Contrast checker → · Palette generator →

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