#9848CE#9848CE

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

Color values

HEX#9848CE
RGBrgb(152, 72, 206)
HSLhsl(276, 58%, 55%)
HSVhsv(276, 65%, 81%)
CMYKcmyk(26.2%, 65%, 0%, 19.2%)
CIE-LABlab(46.67, 56.13, -55.95)
CIE-LCHlch(46.67, 79.26, 315.09°)
OKLaboklab(56.47% 0.1268 -0.1582)
OKLCHoklch(56.47% 0.203 308.7)
XYZxyz(26.4046, 15.7668, 60.0329)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848CE #7ECE48
analogous
#5548CE #9848CE #CE48C1
triadic
#9848CE #CE9848 #48CE98
tetradic
#9848CE #CE5548 #7ECE48 #48C1CE
square
#9848CE #CE5548 #7ECE48 #48C1CE
split-complementary
#9848CE #C1CE48 #48CE55
monochromatic
#57217B #792EAB #9848CE #B378DB #CEA9E8

Accessibility & contrast

On white

5.06
#9848CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9848CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848CE
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848CE#FFFFFF#000000##FFFFFF
##9848CE1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#3170CB
Tritanopia (blue-blind)
#906485
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9848ce;
/* rgb */ color: rgb(152, 72, 206);
/* oklch */ color: oklch(56.5% 0.203 308.7);
Tailwind
colors: {
  custom: {
    50: '#ba80de',
    500: '#9848ce',
    950: '#000000',
  },
}
SCSS
$custom: #9848ce;
$custom-light: #ba80de;
$custom-dark: #000000;
JSON
{
  "hex": "#9848ce",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 206
  },
  "hsl": {
    "h": 275.821,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56469,
    "c": 0.20272,
    "h": 308.7
  },
  "luminance": 0.15766
}

Semantic roles & 50–950 ramp

primary
#9848CE
secondary
#B3D59D
accent
#E14785
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9848CE

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

Preview Lab → · Contrast checker → · Palette generator →

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