#9848CC#9848CC

#9848CC is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.201 H 309.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9848CC
RGBrgb(152, 72, 204)
HSLhsl(276, 56%, 54%)
HSVhsv(276, 65%, 80%)
CMYKcmyk(25.5%, 64.7%, 0%, 20%)
CIE-LABlab(46.54, 55.69, -55.01)
CIE-LCHlch(46.54, 78.28, 315.35°)
OKLaboklab(56.34% 0.127 -0.1554)
OKLCHoklch(56.34% 0.201 309.3)
XYZxyz(26.1632, 15.6702, 58.7614)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848CC #7CCC48
analogous
#5648CC #9848CC #CC48BE
triadic
#9848CC #CC9848 #48CC98
tetradic
#9848CC #CC5648 #7CCC48 #48BECC
square
#9848CC #CC5648 #7CCC48 #48BECC
split-complementary
#9848CC #BECC48 #48CC56
monochromatic
#562178 #782FA8 #9848CC #B378D9 #CEA8E7

Accessibility & contrast

On white

5.08
#9848CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#9848CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848CC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848CC#FFFFFF#000000##FFFFFF
##9848CC1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#336FC9
Tritanopia (blue-blind)
#916384
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9848cc;
/* rgb */ color: rgb(152, 72, 204);
/* oklch */ color: oklch(56.3% 0.201 309.3);
Tailwind
colors: {
  custom: {
    50: '#ba80dc',
    500: '#9848cc',
    950: '#000000',
  },
}
SCSS
$custom: #9848cc;
$custom-light: #ba80dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9848cc",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 276.364,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56335,
    "c": 0.20065,
    "h": 309.3
  },
  "luminance": 0.1567
}

Semantic roles & 50–950 ramp

primary
#9848CC
secondary
#B2D49C
accent
#E04884
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9848CC

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

Preview Lab → · Contrast checker → · Palette generator →

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