#9848EB#9848EB

#9848EB is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.5% C 0.233 H 302.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#9848EB
RGBrgb(152, 72, 235)
HSLhsl(269, 80%, 60%)
HSVhsv(269, 69%, 92%)
CMYKcmyk(35.3%, 69.4%, 0%, 7.8%)
CIE-LABlab(48.65, 62.76, -69.26)
CIE-LCHlch(48.65, 93.46, 312.18°)
OKLaboklab(58.51% 0.1235 -0.1973)
OKLCHoklch(58.51% 0.233 302)
XYZxyz(30.2581, 17.3082, 80.3279)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848EB #9BEB48
analogous
#4849EB #9848EB #EA48EB
triadic
#9848EB #EB9848 #48EB98
tetradic
#9848EB #EB4849 #9BEB48 #48EBEA
square
#9848EB #EB4849 #9BEB48 #48EBEA
split-complementary
#9848EB #EBEA48 #49EB48
monochromatic
#5B12A6 #7918DE #9848EB #B77FF1 #D6B6F7

Accessibility & contrast

On white

4.71
#9848EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#9848EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848EB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848EB#FFFFFF#000000##FFFFFF
##9848EB1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#876F95
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9848eb;
/* rgb */ color: rgb(152, 72, 235);
/* oklch */ color: oklch(58.5% 0.233 302.0);
Tailwind
colors: {
  custom: {
    50: '#bc81f2',
    500: '#9848eb',
    950: '#000000',
  },
}
SCSS
$custom: #9848eb;
$custom-light: #bc81f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9848eb",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 235
  },
  "hsl": {
    "h": 269.448,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58511,
    "c": 0.23272,
    "h": 302
  },
  "luminance": 0.17308
}

Semantic roles & 50–950 ramp

primary
#9848EB
secondary
#C8E7A8
accent
#DD0975
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9848EB

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

Preview Lab → · Contrast checker → · Palette generator →

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