#9848D8#9848D8

#9848D8 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.1% C 0.213 H 306.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#9848D8
RGBrgb(152, 72, 216)
HSLhsl(273, 65%, 56%)
HSVhsv(273, 67%, 85%)
CMYKcmyk(29.6%, 66.7%, 0%, 15.3%)
CIE-LABlab(47.32, 58.38, -60.62)
CIE-LCHlch(47.32, 84.16, 313.92°)
OKLaboklab(57.15% 0.126 -0.1719)
OKLCHoklch(57.15% 0.213 306.2)
XYZxyz(27.6583, 16.2683, 66.6355)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848D8 #88D848
analogous
#5048D8 #9848D8 #D848D0
triadic
#9848D8 #D89848 #48D898
tetradic
#9848D8 #D85048 #88D848 #48D0D8
square
#9848D8 #D85048 #88D848 #48D0D8
split-complementary
#9848D8 #D0D848 #48D850
monochromatic
#591D89 #7A28BB #9848D8 #B47AE3 #D1ADEE

Accessibility & contrast

On white

4.94
#9848D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#9848D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848D8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848D8#FFFFFF#000000##FFFFFF
##9848D81.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#2071D5
Tritanopia (blue-blind)
#8D688A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9848d8;
/* rgb */ color: rgb(152, 72, 216);
/* oklch */ color: oklch(57.1% 0.213 306.2);
Tailwind
colors: {
  custom: {
    50: '#bb80e5',
    500: '#9848d8',
    950: '#000000',
  },
}
SCSS
$custom: #9848d8;
$custom-light: #bb80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9848d8",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 216
  },
  "hsl": {
    "h": 273.333,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5715,
    "c": 0.21309,
    "h": 306.2
  },
  "luminance": 0.16268
}

Semantic roles & 50–950 ramp

primary
#9848D8
secondary
#BBDBA0
accent
#E8408B
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9848D8

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

Preview Lab → · Contrast checker → · Palette generator →

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