#9845D8#9845D8

#9845D8 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.8% C 0.217 H 306.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9845D8
RGBrgb(152, 69, 216)
HSLhsl(274, 65%, 56%)
HSVhsv(274, 68%, 85%)
CMYKcmyk(29.6%, 68.1%, 0%, 15.3%)
CIE-LABlab(46.83, 59.76, -61.42)
CIE-LCHlch(46.83, 85.70, 314.21°)
OKLaboklab(56.8% 0.1291 -0.1742)
OKLCHoklch(56.8% 0.217 306.5)
XYZxyz(27.4690, 15.8898, 66.5724)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845D8 #85D845
analogous
#4F45D8 #9845D8 #D845CE
triadic
#9845D8 #D89845 #45D898
tetradic
#9845D8 #D84F45 #85D845 #45CED8
square
#9845D8 #D84F45 #85D845 #45CED8
split-complementary
#9845D8 #CED845 #45D84F
monochromatic
#581C86 #7927B9 #9845D8 #B478E3 #D0AAED

Accessibility & contrast

On white

5.03
#9845D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9845D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845D8
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845D8#FFFFFF#000000##FFFFFF
##9845D81.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#1970D5
Tritanopia (blue-blind)
#8D6689
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9845d8;
/* rgb */ color: rgb(152, 69, 216);
/* oklch */ color: oklch(56.8% 0.217 306.5);
Tailwind
colors: {
  custom: {
    50: '#bb7fe5',
    500: '#9845d8',
    950: '#000000',
  },
}
SCSS
$custom: #9845d8;
$custom-light: #bb7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#9845d8",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 273.878,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56796,
    "c": 0.21686,
    "h": 306.5
  },
  "luminance": 0.1589
}

Semantic roles & 50–950 ramp

primary
#9845D8
secondary
#B8DB9E
accent
#E84089
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9845D8

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

Preview Lab → · Contrast checker → · Palette generator →

#9845D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva