#9848D9#9848D9

#9848D9 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.2% C 0.214 H 306.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9848D9
RGBrgb(152, 72, 217)
HSLhsl(273, 66%, 57%)
HSVhsv(273, 67%, 85%)
CMYKcmyk(30%, 66.8%, 0%, 14.9%)
CIE-LABlab(47.39, 58.61, -61.09)
CIE-LCHlch(47.39, 84.66, 313.82°)
OKLaboklab(57.22% 0.1259 -0.1732)
OKLCHoklch(57.22% 0.214 306)
XYZxyz(27.7879, 16.3201, 67.3184)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848D9 #89D948
analogous
#5048D9 #9848D9 #D948D2
triadic
#9848D9 #D99848 #48D998
tetradic
#9848D9 #D95048 #89D948 #48D2D9
square
#9848D9 #D95048 #89D948 #48D2D9
split-complementary
#9848D9 #D2D948 #48D950
monochromatic
#591D8A #7A27BD #9848D9 #B57BE4 #D1ADEE

Accessibility & contrast

On white

4.92
#9848D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9848D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848D9
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848D9#FFFFFF#000000##FFFFFF
##9848D91.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#1E71D6
Tritanopia (blue-blind)
#8D688B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9848d9;
/* rgb */ color: rgb(152, 72, 217);
/* oklch */ color: oklch(57.2% 0.214 306.0);
Tailwind
colors: {
  custom: {
    50: '#bb80e6',
    500: '#9848d9',
    950: '#000000',
  },
}
SCSS
$custom: #9848d9;
$custom-light: #bb80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9848d9",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 273.103,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5722,
    "c": 0.21412,
    "h": 306
  },
  "luminance": 0.1632
}

Semantic roles & 50–950 ramp

primary
#9848D9
secondary
#BBDCA1
accent
#E93F8B
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9848D9

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

Preview Lab → · Contrast checker → · Palette generator →

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