#9848C8#9848C8

#9848C8 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 56.1% C 0.197 H 310.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9848C8
RGBrgb(152, 72, 200)
HSLhsl(278, 54%, 53%)
HSVhsv(278, 64%, 78%)
CMYKcmyk(24%, 64%, 0%, 21.6%)
CIE-LABlab(46.29, 54.80, -53.11)
CIE-LCHlch(46.29, 76.31, 315.90°)
OKLaboklab(56.07% 0.1272 -0.1498)
OKLCHoklch(56.07% 0.197 310.3)
XYZxyz(25.6896, 15.4808, 56.2672)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848C8 #78C848
analogous
#5848C8 #9848C8 #C848B8
triadic
#9848C8 #C89848 #48C898
tetradic
#9848C8 #C85848 #78C848 #48B8C8
square
#9848C8 #C85848 #78C848 #48B8C8
split-complementary
#9848C8 #B8C848 #48C858
monochromatic
#552373 #7831A2 #9848C8 #B277D6 #CDA6E4

Accessibility & contrast

On white

5.13
#9848C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9848C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848C8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848C8#FFFFFF#000000##FFFFFF
##9848C81.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#386FC5
Tritanopia (blue-blind)
#926282
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9848c8;
/* rgb */ color: rgb(152, 72, 200);
/* oklch */ color: oklch(56.1% 0.197 310.3);
Tailwind
colors: {
  custom: {
    50: '#ba80d9',
    500: '#9848c8',
    950: '#000000',
  },
}
SCSS
$custom: #9848c8;
$custom-light: #ba80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9848c8",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 200
  },
  "hsl": {
    "h": 277.5,
    "s": 53.782,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56072,
    "c": 0.19651,
    "h": 310.3
  },
  "luminance": 0.1548
}

Semantic roles & 50–950 ramp

primary
#9848C8
secondary
#AFD19A
accent
#DD4B82
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9848C8

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

Preview Lab → · Contrast checker → · Palette generator →

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