#9848E5#9848E5

#9848E5 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.1% C 0.227 H 303.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9848E5
RGBrgb(152, 72, 229)
HSLhsl(271, 75%, 59%)
HSVhsv(271, 69%, 90%)
CMYKcmyk(33.6%, 68.6%, 0%, 10.2%)
CIE-LABlab(48.22, 61.36, -66.56)
CIE-LCHlch(48.22, 90.53, 312.67°)
OKLaboklab(58.07% 0.1244 -0.1893)
OKLCHoklch(58.07% 0.227 303.3)
XYZxyz(29.4058, 16.9673, 75.8394)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848E5 #95E548
analogous
#4A48E5 #9848E5 #E548E4
triadic
#9848E5 #E59848 #48E598
tetradic
#9848E5 #E54A48 #95E548 #48E4E5
square
#9848E5 #E54A48 #95E548 #48E4E5
split-complementary
#9848E5 #E4E548 #48E54A
monochromatic
#5B169C #7A1ED2 #9848E5 #B67EED #D4B3F4

Accessibility & contrast

On white

4.78
#9848E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#9848E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848E5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848E5#FFFFFF#000000##FFFFFF
##9848E51.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9848e5;
/* rgb */ color: rgb(152, 72, 229);
/* oklch */ color: oklch(58.1% 0.227 303.3);
Tailwind
colors: {
  custom: {
    50: '#bc81ee',
    500: '#9848e5',
    950: '#000000',
  },
}
SCSS
$custom: #9848e5;
$custom-light: #bc81ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9848e5",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 229
  },
  "hsl": {
    "h": 270.573,
    "s": 75.12,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58073,
    "c": 0.22653,
    "h": 303.3
  },
  "luminance": 0.16967
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9848E5

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

Preview Lab → · Contrast checker → · Palette generator →

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