#9845D9#9845D9

#9845D9 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.9% C 0.218 H 306.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9845D9
RGBrgb(152, 69, 217)
HSLhsl(274, 66%, 56%)
HSVhsv(274, 68%, 85%)
CMYKcmyk(30%, 68.2%, 0%, 14.9%)
CIE-LABlab(46.90, 59.98, -61.88)
CIE-LCHlch(46.90, 86.18, 314.11°)
OKLaboklab(56.87% 0.129 -0.1756)
OKLCHoklch(56.87% 0.218 306.3)
XYZxyz(27.5987, 15.9417, 67.2553)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845D9 #86D945
analogous
#4E45D9 #9845D9 #D945D0
triadic
#9845D9 #D99845 #45D998
tetradic
#9845D9 #D94E45 #86D945 #45D0D9
square
#9845D9 #D94E45 #86D945 #45D0D9
split-complementary
#9845D9 #D0D945 #45D94E
monochromatic
#581C88 #7926BB #9845D9 #B478E3 #D0ABEE

Accessibility & contrast

On white

5.01
#9845D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9845D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845D9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845D9#FFFFFF#000000##FFFFFF
##9845D91.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)
#006DDD
Deuteranopia (green-blind)
#1770D6
Tritanopia (blue-blind)
#8D668A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9845d9;
/* rgb */ color: rgb(152, 69, 217);
/* oklch */ color: oklch(56.9% 0.218 306.3);
Tailwind
colors: {
  custom: {
    50: '#bb7fe6',
    500: '#9845d9',
    950: '#000000',
  },
}
SCSS
$custom: #9845d9;
$custom-light: #bb7fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9845d9",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 273.649,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56866,
    "c": 0.21787,
    "h": 306.3
  },
  "luminance": 0.15941
}

Semantic roles & 50–950 ramp

primary
#9845D9
secondary
#B9DB9E
accent
#E93F8A
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9845D9

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

Preview Lab → · Contrast checker → · Palette generator →

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