#9848D2#9848D2

#9848D2 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.7% C 0.207 H 307.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9848D2
RGBrgb(152, 72, 210)
HSLhsl(275, 61%, 55%)
HSVhsv(275, 66%, 82%)
CMYKcmyk(27.6%, 65.7%, 0%, 17.6%)
CIE-LABlab(46.93, 57.03, -57.83)
CIE-LCHlch(46.93, 81.22, 314.60°)
OKLaboklab(56.74% 0.1265 -0.1637)
OKLCHoklch(56.74% 0.207 307.7)
XYZxyz(26.8967, 15.9636, 62.6246)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848D2 #82D248
analogous
#5348D2 #9848D2 #D248C7
triadic
#9848D2 #D29848 #48D298
tetradic
#9848D2 #D25348 #82D248 #48C7D2
square
#9848D2 #D25348 #82D248 #48C7D2
split-complementary
#9848D2 #C7D248 #48D253
monochromatic
#582080 #792CB1 #9848D2 #B479DE #CFAAEA

Accessibility & contrast

On white

5.01
#9848D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9848D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848D2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848D2#FFFFFF#000000##FFFFFF
##9848D21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#2B70CF
Tritanopia (blue-blind)
#8F6587
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9848d2;
/* rgb */ color: rgb(152, 72, 210);
/* oklch */ color: oklch(56.7% 0.207 307.7);
Tailwind
colors: {
  custom: {
    50: '#bb80e1',
    500: '#9848d2',
    950: '#000000',
  },
}
SCSS
$custom: #9848d2;
$custom-light: #bb80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9848d2",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 274.783,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56738,
    "c": 0.20687,
    "h": 307.7
  },
  "luminance": 0.15963
}

Semantic roles & 50–950 ramp

primary
#9848D2
secondary
#B6D89E
accent
#E44487
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9848D2

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

Preview Lab → · Contrast checker → · Palette generator →

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