#9848E8#9848E8

#9848E8 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.3% C 0.230 H 302.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9848E8
RGBrgb(152, 72, 232)
HSLhsl(270, 78%, 60%)
HSVhsv(270, 69%, 91%)
CMYKcmyk(34.5%, 69%, 0%, 9%)
CIE-LABlab(48.43, 62.06, -67.91)
CIE-LCHlch(48.43, 92.00, 312.42°)
OKLaboklab(58.29% 0.1239 -0.1933)
OKLCHoklch(58.29% 0.23 302.7)
XYZxyz(29.8283, 17.1363, 78.0645)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848E8 #98E848
analogous
#4848E8 #9848E8 #E848E8
triadic
#9848E8 #E89848 #48E898
tetradic
#9848E8 #E84848 #98E848 #48E8E8
square
#9848E8 #E84848 #98E848 #48E8E8
split-complementary
#9848E8 #E8E848 #48E848
monochromatic
#5B14A1 #791BD8 #9848E8 #B77EEF #D5B5F6

Accessibility & contrast

On white

4.74
#9848E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9848E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848E8
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848E8#FFFFFF#000000##FFFFFF
##9848E81.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#0072E5
Tritanopia (blue-blind)
#886E93
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9848e8;
/* rgb */ color: rgb(152, 72, 232);
/* oklch */ color: oklch(58.3% 0.230 302.7);
Tailwind
colors: {
  custom: {
    50: '#bc81f0',
    500: '#9848e8',
    950: '#000000',
  },
}
SCSS
$custom: #9848e8;
$custom-light: #bc81f0;
$custom-dark: #000000;
JSON
{
  "hex": "#9848e8",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 232
  },
  "hsl": {
    "h": 270,
    "s": 77.67,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58291,
    "c": 0.22962,
    "h": 302.7
  },
  "luminance": 0.17136
}

Semantic roles & 50–950 ramp

primary
#9848E8
secondary
#C6E5A7
accent
#F43494
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9848E8

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

Preview Lab → · Contrast checker → · Palette generator →

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