#9848D5#9848D5

#9848D5 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.9% C 0.210 H 307.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9848D5
RGBrgb(152, 72, 213)
HSLhsl(274, 63%, 56%)
HSVhsv(274, 66%, 84%)
CMYKcmyk(28.6%, 66.2%, 0%, 16.5%)
CIE-LABlab(47.12, 57.70, -59.23)
CIE-LCHlch(47.12, 82.69, 314.25°)
OKLaboklab(56.94% 0.1263 -0.1678)
OKLCHoklch(56.94% 0.21 307)
XYZxyz(27.2740, 16.1145, 64.6115)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848D5 #85D548
analogous
#5148D5 #9848D5 #D548CB
triadic
#9848D5 #D59848 #48D598
tetradic
#9848D5 #D55148 #85D548 #48CBD5
square
#9848D5 #D55148 #85D548 #48CBD5
split-complementary
#9848D5 #CBD548 #48D551
monochromatic
#581E84 #792AB6 #9848D5 #B47AE0 #D0ACEC

Accessibility & contrast

On white

4.97
#9848D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9848D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848D5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848D5#FFFFFF#000000##FFFFFF
##9848D51.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#2670D2
Tritanopia (blue-blind)
#8E6689
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9848d5;
/* rgb */ color: rgb(152, 72, 213);
/* oklch */ color: oklch(56.9% 0.210 307.0);
Tailwind
colors: {
  custom: {
    50: '#bb80e3',
    500: '#9848d5',
    950: '#000000',
  },
}
SCSS
$custom: #9848d5;
$custom-light: #bb80e3;
$custom-dark: #000000;
JSON
{
  "hex": "#9848d5",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 213
  },
  "hsl": {
    "h": 274.043,
    "s": 62.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56943,
    "c": 0.20997,
    "h": 307
  },
  "luminance": 0.16114
}

Semantic roles & 50–950 ramp

primary
#9848D5
secondary
#B8DA9F
accent
#E64289
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #9848D5

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

Preview Lab → · Contrast checker → · Palette generator →

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