#9848EF#9848EF

#9848EF is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.8% C 0.237 H 301.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#9848EF
RGBrgb(152, 72, 239)
HSLhsl(269, 84%, 61%)
HSVhsv(269, 70%, 94%)
CMYKcmyk(36.4%, 69.9%, 0%, 6.3%)
CIE-LABlab(48.94, 63.69, -71.04)
CIE-LCHlch(48.94, 95.41, 311.88°)
OKLaboklab(58.81% 0.1228 -0.2025)
OKLCHoklch(58.81% 0.237 301.2)
XYZxyz(30.8425, 17.5419, 83.4056)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848EF #9FEF48
analogous
#484BEF #9848EF #EC48EF
triadic
#9848EF #EF9848 #48EF98
tetradic
#9848EF #EF484B #9FEF48 #48EFEC
square
#9848EF #EF484B #9FEF48 #48EFEC
split-complementary
#9848EF #EFEC48 #4BEF48
monochromatic
#5B0FAD #7914E6 #9848EF #B880F4 #D7B9F9

Accessibility & contrast

On white

4.66
#9848EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#9848EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9848EF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848EF#FFFFFF#000000##FFFFFF
##9848EF1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F4
Deuteranopia (green-blind)
#0073EC
Tritanopia (blue-blind)
#857097
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9848ef;
/* rgb */ color: rgb(152, 72, 239);
/* oklch */ color: oklch(58.8% 0.237 301.2);
Tailwind
colors: {
  custom: {
    50: '#bd81f5',
    500: '#9848ef',
    950: '#000000',
  },
}
SCSS
$custom: #9848ef;
$custom-light: #bd81f5;
$custom-dark: #000000;
JSON
{
  "hex": "#9848ef",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 239
  },
  "hsl": {
    "h": 268.743,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58808,
    "c": 0.23683,
    "h": 301.2
  },
  "luminance": 0.17542
}

Semantic roles & 50–950 ramp

primary
#9848EF
secondary
#CBE9AA
accent
#E00577
background
#FCF8FF
surface
#F8EFFF
border
#D1CAD7
text
#130B17
muted
#827C85

Preview Lab

Preview with #9848EF

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

Preview Lab → · Contrast checker → · Palette generator →

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