#9847E4#9847E4

#9847E4 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.9% C 0.227 H 303.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#9847E4
RGBrgb(152, 71, 228)
HSLhsl(271, 74%, 59%)
HSVhsv(271, 69%, 89%)
CMYKcmyk(33.3%, 68.9%, 0%, 10.6%)
CIE-LABlab(47.99, 61.59, -66.38)
CIE-LCHlch(47.99, 90.55, 312.86°)
OKLaboklab(57.88% 0.1255 -0.1888)
OKLCHoklch(57.88% 0.227 303.6)
XYZxyz(29.2025, 16.7834, 75.0848)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847E4 #93E447
analogous
#4947E4 #9847E4 #E447E2
triadic
#9847E4 #E49847 #47E498
tetradic
#9847E4 #E44947 #93E447 #47E2E4
square
#9847E4 #E44947 #93E447 #47E2E4
split-complementary
#9847E4 #E2E447 #47E449
monochromatic
#5A179A #7A1ECF #9847E4 #B67CEC #D4B2F4

Accessibility & contrast

On white

4.82
#9847E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#9847E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847E4
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847E4#FFFFFF#000000##FFFFFF
##9847E41.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0072E1
Tritanopia (blue-blind)
#896C90
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9847e4;
/* rgb */ color: rgb(152, 71, 228);
/* oklch */ color: oklch(57.9% 0.227 303.6);
Tailwind
colors: {
  custom: {
    50: '#bc80ed',
    500: '#9847e4',
    950: '#000000',
  },
}
SCSS
$custom: #9847e4;
$custom-light: #bc80ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9847e4",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 228
  },
  "hsl": {
    "h": 270.955,
    "s": 74.408,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57884,
    "c": 0.2267,
    "h": 303.6
  },
  "luminance": 0.16783
}

Semantic roles & 50–950 ramp

primary
#9847E4
secondary
#C2E2A4
accent
#F13791
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9847E4

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

Preview Lab → · Contrast checker → · Palette generator →

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