#9851E5#9851E5

#9851E5 is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.2% C 0.215 H 302.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#9851E5
RGBrgb(152, 81, 229)
HSLhsl(269, 74%, 61%)
HSVhsv(269, 65%, 90%)
CMYKcmyk(33.6%, 64.6%, 0%, 10.2%)
CIE-LABlab(49.76, 57.11, -64.07)
CIE-LCHlch(49.76, 85.83, 311.71°)
OKLaboklab(59.18% 0.1149 -0.182)
OKLCHoklch(59.18% 0.215 302.3)
XYZxyz(30.0309, 18.2173, 76.0477)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851E5 #9EE551
analogous
#5154E5 #9851E5 #E251E5
triadic
#9851E5 #E59851 #51E598
tetradic
#9851E5 #E55154 #9EE551 #51E5E2
square
#9851E5 #E55154 #9EE551 #51E5E2
split-complementary
#9851E5 #E5E251 #54E551
monochromatic
#5B18A3 #7920D8 #9851E5 #B886ED #D7BBF5

Accessibility & contrast

On white

4.52
#9851E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#9851E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9851E5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851E5#FFFFFF#000000##000000
##9851E51.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EA
Deuteranopia (green-blind)
#1576E2
Tritanopia (blue-blind)
#887294
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9851e5;
/* rgb */ color: rgb(152, 81, 229);
/* oklch */ color: oklch(59.2% 0.215 302.3);
Tailwind
colors: {
  custom: {
    50: '#bb86ee',
    500: '#9851e5',
    950: '#000000',
  },
}
SCSS
$custom: #9851e5;
$custom-light: #bb86ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9851e5",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 268.784,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59176,
    "c": 0.21529,
    "h": 302.3
  },
  "luminance": 0.18217
}

Semantic roles & 50–950 ramp

primary
#9851E5
secondary
#CAE5AD
accent
#D60F77
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9851E5

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

Preview Lab → · Contrast checker → · Palette generator →

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