#9847E5#9847E5

#9847E5 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 58.0% C 0.228 H 303.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9847E5
RGBrgb(152, 71, 229)
HSLhsl(271, 75%, 59%)
HSVhsv(271, 69%, 90%)
CMYKcmyk(33.6%, 69%, 0%, 10.2%)
CIE-LABlab(48.06, 61.82, -66.83)
CIE-LCHlch(48.06, 91.03, 312.77°)
OKLaboklab(57.96% 0.1254 -0.1901)
OKLCHoklch(57.96% 0.228 303.4)
XYZxyz(29.3417, 16.8390, 75.8180)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847E5 #94E547
analogous
#4947E5 #9847E5 #E547E3
triadic
#9847E5 #E59847 #47E598
tetradic
#9847E5 #E54947 #94E547 #47E3E5
square
#9847E5 #E54947 #94E547 #47E3E5
split-complementary
#9847E5 #E3E547 #47E549
monochromatic
#5A169C #7A1ED1 #9847E5 #B67DED #D4B2F4

Accessibility & contrast

On white

4.81
#9847E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9847E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847E5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847E5#FFFFFF#000000##FFFFFF
##9847E51.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#0072E2
Tritanopia (blue-blind)
#896C91
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9847e5;
/* rgb */ color: rgb(152, 71, 229);
/* oklch */ color: oklch(58.0% 0.228 303.4);
Tailwind
colors: {
  custom: {
    50: '#bc80ee',
    500: '#9847e5',
    950: '#000000',
  },
}
SCSS
$custom: #9847e5;
$custom-light: #bc80ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9847e5",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 229
  },
  "hsl": {
    "h": 270.759,
    "s": 75.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57957,
    "c": 0.22772,
    "h": 303.4
  },
  "luminance": 0.16839
}

Semantic roles & 50–950 ramp

primary
#9847E5
secondary
#C3E3A5
accent
#F23692
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9847E5

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

Preview Lab → · Contrast checker → · Palette generator →

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