#9848CA#9848CA

#9848CA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.2% C 0.199 H 309.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9848CA
RGBrgb(152, 72, 202)
HSLhsl(277, 55%, 54%)
HSVhsv(277, 64%, 79%)
CMYKcmyk(24.8%, 64.4%, 0%, 20.8%)
CIE-LABlab(46.41, 55.25, -54.06)
CIE-LCHlch(46.41, 77.29, 315.62°)
OKLaboklab(56.2% 0.1271 -0.1526)
OKLCHoklch(56.2% 0.199 309.8)
XYZxyz(25.9249, 15.5749, 57.5062)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848CA #7ACA48
analogous
#5748CA #9848CA #CA48BB
triadic
#9848CA #CA9848 #48CA98
tetradic
#9848CA #CA5748 #7ACA48 #48BBCA
square
#9848CA #CA5748 #7ACA48 #48BBCA
split-complementary
#9848CA #BBCA48 #48CA57
monochromatic
#552276 #7830A5 #9848CA #B377D8 #CDA7E5

Accessibility & contrast

On white

5.10
#9848CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9848CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848CA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848CA#FFFFFF#000000##FFFFFF
##9848CA1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#366FC7
Tritanopia (blue-blind)
#916283
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9848ca;
/* rgb */ color: rgb(152, 72, 202);
/* oklch */ color: oklch(56.2% 0.199 309.8);
Tailwind
colors: {
  custom: {
    50: '#ba80db',
    500: '#9848ca',
    950: '#000000',
  },
}
SCSS
$custom: #9848ca;
$custom-light: #ba80db;
$custom-dark: #000000;
JSON
{
  "hex": "#9848ca",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 276.923,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56203,
    "c": 0.19858,
    "h": 309.8
  },
  "luminance": 0.15574
}

Semantic roles & 50–950 ramp

primary
#9848CA
secondary
#B0D39B
accent
#DE4983
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9848CA

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

Preview Lab → · Contrast checker → · Palette generator →

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