#9848CB#9848CB

#9848CB is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.3% C 0.200 H 309.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9848CB
RGBrgb(152, 72, 203)
HSLhsl(277, 56%, 54%)
HSVhsv(277, 65%, 80%)
CMYKcmyk(25.1%, 64.5%, 0%, 20.4%)
CIE-LABlab(46.48, 55.47, -54.53)
CIE-LCHlch(46.48, 77.78, 315.49°)
OKLaboklab(56.27% 0.127 -0.154)
OKLCHoklch(56.27% 0.2 309.5)
XYZxyz(26.0436, 15.6224, 58.1318)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848CB #7BCB48
analogous
#5748CB #9848CB #CB48BD
triadic
#9848CB #CB9848 #48CB98
tetradic
#9848CB #CB5748 #7BCB48 #48BDCB
square
#9848CB #CB5748 #7BCB48 #48BDCB
split-complementary
#9848CB #BDCB48 #48CB57
monochromatic
#562277 #782FA6 #9848CB #B378D9 #CEA7E6

Accessibility & contrast

On white

5.09
#9848CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9848CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848CB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848CB#FFFFFF#000000##FFFFFF
##9848CB1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#346FC8
Tritanopia (blue-blind)
#916383
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9848cb;
/* rgb */ color: rgb(152, 72, 203);
/* oklch */ color: oklch(56.3% 0.200 309.5);
Tailwind
colors: {
  custom: {
    50: '#ba80db',
    500: '#9848cb',
    950: '#000000',
  },
}
SCSS
$custom: #9848cb;
$custom-light: #ba80db;
$custom-dark: #000000;
JSON
{
  "hex": "#9848cb",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 276.641,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56269,
    "c": 0.19962,
    "h": 309.5
  },
  "luminance": 0.15622
}

Semantic roles & 50–950 ramp

primary
#9848CB
secondary
#B1D39B
accent
#DF4983
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9848CB

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

Preview Lab → · Contrast checker → · Palette generator →

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