#9851EA#9851EA

#9851EA is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.5% C 0.221 H 301.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9851EA
RGBrgb(152, 81, 234)
HSLhsl(268, 78%, 62%)
HSVhsv(268, 65%, 92%)
CMYKcmyk(35%, 65.4%, 0%, 8.2%)
CIE-LABlab(50.10, 58.30, -66.34)
CIE-LCHlch(50.10, 88.32, 311.31°)
OKLaboklab(59.53% 0.1144 -0.1887)
OKLCHoklch(59.53% 0.221 301.2)
XYZxyz(30.7390, 18.5006, 79.7775)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851EA #A3EA51
analogous
#5157EA #9851EA #E551EA
triadic
#9851EA #EA9851 #51EA98
tetradic
#9851EA #EA5157 #A3EA51 #51EAE5
square
#9851EA #EA5157 #A3EA51 #51EAE5
split-complementary
#9851EA #EAE551 #57EA51
monochromatic
#5B15AC #781BE2 #9851EA #B888F1 #D9BEF7

Accessibility & contrast

On white

4.47
#9851EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#9851EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9851EA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851EA#FFFFFF#000000##000000
##9851EA1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#0076E7
Tritanopia (blue-blind)
#877497
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9851ea;
/* rgb */ color: rgb(152, 81, 234);
/* oklch */ color: oklch(59.5% 0.221 301.2);
Tailwind
colors: {
  custom: {
    50: '#bc86f2',
    500: '#9851ea',
    950: '#000000',
  },
}
SCSS
$custom: #9851ea;
$custom-light: #bc86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9851ea",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 267.843,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59528,
    "c": 0.2207,
    "h": 301.2
  },
  "luminance": 0.18501
}

Semantic roles & 50–950 ramp

primary
#9851EA
secondary
#CDE8AF
accent
#DB0B7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #9851EA

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

Preview Lab → · Contrast checker → · Palette generator →

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