#9848BF#9848BF

#9848BF is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.5% C 0.187 H 312.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9848BF
RGBrgb(152, 72, 191)
HSLhsl(280, 48%, 52%)
HSVhsv(280, 62%, 75%)
CMYKcmyk(20.4%, 62.3%, 0%, 25.1%)
CIE-LABlab(45.73, 52.85, -48.77)
CIE-LCHlch(45.73, 71.91, 317.29°)
OKLaboklab(55.5% 0.1275 -0.1371)
OKLCHoklch(55.5% 0.187 312.9)
XYZxyz(24.6686, 15.0724, 50.8899)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848BF #6FBF48
analogous
#5D48BF #9848BF #BF48AB
triadic
#9848BF #BF9848 #48BF98
tetradic
#9848BF #BF5D48 #6FBF48 #48ABBF
square
#9848BF #BF5D48 #6FBF48 #48ABBF
split-complementary
#9848BF #ABBF48 #48BF5D
monochromatic
#522468 #763496 #9848BF #B275CF #CBA3DF

Accessibility & contrast

On white

5.23
#9848BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9848BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848BF
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848BF#FFFFFF#000000##FFFFFF
##9848BF1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1868C3
Deuteranopia (green-blind)
#416EBC
Tritanopia (blue-blind)
#945E7D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9848bf;
/* rgb */ color: rgb(152, 72, 191);
/* oklch */ color: oklch(55.5% 0.187 312.9);
Tailwind
colors: {
  custom: {
    50: '#ba80d3',
    500: '#9848bf',
    950: '#000000',
  },
}
SCSS
$custom: #9848bf;
$custom-light: #ba80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9848bf",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 280.336,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55495,
    "c": 0.18721,
    "h": 312.9
  },
  "luminance": 0.15072
}

Semantic roles & 50–950 ramp

primary
#9848BF
secondary
#A8CC97
accent
#D8507D
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9848BF

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

Preview Lab → · Contrast checker → · Palette generator →

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