#9848C7#9848C7

#9848C7 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 56.0% C 0.195 H 310.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9848C7
RGBrgb(152, 72, 199)
HSLhsl(278, 53%, 53%)
HSVhsv(278, 64%, 78%)
CMYKcmyk(23.6%, 63.8%, 0%, 22%)
CIE-LABlab(46.22, 54.59, -52.63)
CIE-LCHlch(46.22, 75.82, 316.05°)
OKLaboklab(56.01% 0.1272 -0.1484)
OKLCHoklch(56.01% 0.195 310.6)
XYZxyz(25.5731, 15.4342, 55.6537)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848C7 #77C748
analogous
#5848C7 #9848C7 #C748B7
triadic
#9848C7 #C79848 #48C798
tetradic
#9848C7 #C75848 #77C748 #48B7C7
square
#9848C7 #C75848 #77C748 #48B7C7
split-complementary
#9848C7 #B7C748 #48C758
monochromatic
#552372 #7731A1 #9848C7 #B277D5 #CDA6E4

Accessibility & contrast

On white

5.14
#9848C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9848C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848C7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848C7#FFFFFF#000000##FFFFFF
##9848C71.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#396FC4
Tritanopia (blue-blind)
#926181
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9848c7;
/* rgb */ color: rgb(152, 72, 199);
/* oklch */ color: oklch(56.0% 0.195 310.6);
Tailwind
colors: {
  custom: {
    50: '#ba80d9',
    500: '#9848c7',
    950: '#000000',
  },
}
SCSS
$custom: #9848c7;
$custom-light: #ba80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9848c7",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 199
  },
  "hsl": {
    "h": 277.795,
    "s": 53.138,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56007,
    "c": 0.19547,
    "h": 310.6
  },
  "luminance": 0.15434
}

Semantic roles & 50–950 ramp

primary
#9848C7
secondary
#AED19A
accent
#DD4B81
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120A15
muted
#817C83

Preview Lab

Preview with #9848C7

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

Preview Lab → · Contrast checker → · Palette generator →

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