#9848D7#9848D7

#9848D7 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.1% C 0.212 H 306.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9848D7
RGBrgb(152, 72, 215)
HSLhsl(274, 64%, 56%)
HSVhsv(274, 67%, 84%)
CMYKcmyk(29.3%, 66.5%, 0%, 15.7%)
CIE-LABlab(47.26, 58.16, -60.16)
CIE-LCHlch(47.26, 83.67, 314.03°)
OKLaboklab(57.08% 0.1261 -0.1705)
OKLCHoklch(57.08% 0.212 306.5)
XYZxyz(27.5294, 16.2167, 65.9567)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848D7 #87D748
analogous
#5148D7 #9848D7 #D748CF
triadic
#9848D7 #D79848 #48D798
tetradic
#9848D7 #D75148 #87D748 #48CFD7
square
#9848D7 #D75148 #87D748 #48CFD7
split-complementary
#9848D7 #CFD748 #48D751
monochromatic
#591E87 #7A29B9 #9848D7 #B47AE2 #D1ACED

Accessibility & contrast

On white

4.95
#9848D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9848D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848D7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848D7#FFFFFF#000000##FFFFFF
##9848D71.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#2271D4
Tritanopia (blue-blind)
#8D678A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9848d7;
/* rgb */ color: rgb(152, 72, 215);
/* oklch */ color: oklch(57.1% 0.212 306.5);
Tailwind
colors: {
  custom: {
    50: '#bb80e4',
    500: '#9848d7',
    950: '#000000',
  },
}
SCSS
$custom: #9848d7;
$custom-light: #bb80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9848d7",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 215
  },
  "hsl": {
    "h": 273.566,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57081,
    "c": 0.21205,
    "h": 306.5
  },
  "luminance": 0.16216
}

Semantic roles & 50–950 ramp

primary
#9848D7
secondary
#BADBA0
accent
#E7418A
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9848D7

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

Preview Lab → · Contrast checker → · Palette generator →

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