#9848E2#9848E2

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

Color values

HEX#9848E2
RGBrgb(152, 72, 226)
HSLhsl(271, 73%, 58%)
HSVhsv(271, 68%, 89%)
CMYKcmyk(32.7%, 68.1%, 0%, 11.4%)
CIE-LABlab(48.01, 60.67, -65.21)
CIE-LCHlch(48.01, 89.07, 312.94°)
OKLaboklab(57.86% 0.1248 -0.1853)
OKLCHoklch(57.86% 0.223 303.9)
XYZxyz(28.9906, 16.8012, 73.6524)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848E2 #92E248
analogous
#4B48E2 #9848E2 #E248DF
triadic
#9848E2 #E29848 #48E298
tetradic
#9848E2 #E24B48 #92E248 #48DFE2
square
#9848E2 #E24B48 #92E248 #48DFE2
split-complementary
#9848E2 #DFE248 #48E24B
monochromatic
#5A1898 #7A20CC #9848E2 #B67DEA #D3B2F3

Accessibility & contrast

On white

4.82
#9848E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#9848E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848E2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848E2#FFFFFF#000000##FFFFFF
##9848E21.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)
#0070E7
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#8A6B90
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9848e2;
/* rgb */ color: rgb(152, 72, 226);
/* oklch */ color: oklch(57.9% 0.223 303.9);
Tailwind
colors: {
  custom: {
    50: '#bc81ec',
    500: '#9848e2',
    950: '#000000',
  },
}
SCSS
$custom: #9848e2;
$custom-light: #bc81ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9848e2",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 226
  },
  "hsl": {
    "h": 271.169,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57856,
    "c": 0.22342,
    "h": 303.9
  },
  "luminance": 0.16801
}

Semantic roles & 50–950 ramp

primary
#9848E2
secondary
#C2E1A4
accent
#EF3890
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9848E2

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

Preview Lab → · Contrast checker → · Palette generator →

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