#9848CF#9848CF

#9848CF is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.5% C 0.204 H 308.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9848CF
RGBrgb(152, 72, 207)
HSLhsl(276, 58%, 55%)
HSVhsv(276, 65%, 81%)
CMYKcmyk(26.6%, 65.2%, 0%, 18.8%)
CIE-LABlab(46.73, 56.36, -56.42)
CIE-LCHlch(46.73, 79.75, 314.97°)
OKLaboklab(56.54% 0.1268 -0.1595)
OKLCHoklch(56.54% 0.204 308.5)
XYZxyz(26.5265, 15.8155, 60.6747)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848CF #7FCF48
analogous
#5548CF #9848CF #CF48C2
triadic
#9848CF #CF9848 #48CF98
tetradic
#9848CF #CF5548 #7FCF48 #48C2CF
square
#9848CF #CF5548 #7FCF48 #48C2CF
split-complementary
#9848CF #C2CF48 #48CF55
monochromatic
#57217C #792DAD #9848CF #B378DC #CFA9E8

Accessibility & contrast

On white

5.04
#9848CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9848CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848CF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848CF#FFFFFF#000000##FFFFFF
##9848CF1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#2F70CC
Tritanopia (blue-blind)
#906485
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9848cf;
/* rgb */ color: rgb(152, 72, 207);
/* oklch */ color: oklch(56.5% 0.204 308.5);
Tailwind
colors: {
  custom: {
    50: '#ba80de',
    500: '#9848cf',
    950: '#000000',
  },
}
SCSS
$custom: #9848cf;
$custom-light: #ba80de;
$custom-dark: #000000;
JSON
{
  "hex": "#9848cf",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 275.556,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56536,
    "c": 0.20376,
    "h": 308.5
  },
  "luminance": 0.15815
}

Semantic roles & 50–950 ramp

primary
#9848CF
secondary
#B4D69D
accent
#E24686
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9848CF

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

Preview Lab → · Contrast checker → · Palette generator →

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