#9848DB#9848DB

#9848DB is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.4% C 0.216 H 305.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9848DB
RGBrgb(152, 72, 219)
HSLhsl(273, 67%, 57%)
HSVhsv(273, 67%, 86%)
CMYKcmyk(30.6%, 67.1%, 0%, 14.1%)
CIE-LABlab(47.53, 59.07, -62.01)
CIE-LCHlch(47.53, 85.64, 313.61°)
OKLaboklab(57.36% 0.1256 -0.1759)
OKLCHoklch(57.36% 0.216 305.5)
XYZxyz(28.0496, 16.4248, 68.6967)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848DB #8BDB48
analogous
#4F48DB #9848DB #DB48D5
triadic
#9848DB #DB9848 #48DB98
tetradic
#9848DB #DB4F48 #8BDB48 #48D5DB
square
#9848DB #DB4F48 #8BDB48 #48D5DB
split-complementary
#9848DB #D5DB48 #48DB4F
monochromatic
#591C8D #7A26C0 #9848DB #B57BE5 #D2AEEF

Accessibility & contrast

On white

4.90
#9848DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9848DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848DB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848DB#FFFFFF#000000##FFFFFF
##9848DB1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#1971D8
Tritanopia (blue-blind)
#8C698C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9848db;
/* rgb */ color: rgb(152, 72, 219);
/* oklch */ color: oklch(57.4% 0.216 305.5);
Tailwind
colors: {
  custom: {
    50: '#bb80e7',
    500: '#9848db',
    950: '#000000',
  },
}
SCSS
$custom: #9848db;
$custom-light: #bb80e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9848db",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 272.653,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57359,
    "c": 0.21619,
    "h": 305.5
  },
  "luminance": 0.16425
}

Semantic roles & 50–950 ramp

primary
#9848DB
secondary
#BDDDA2
accent
#EA3E8C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9848DB

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

Preview Lab → · Contrast checker → · Palette generator →

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