#9845D7#9845D7

#9845D7 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.7% C 0.216 H 306.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9845D7
RGBrgb(152, 69, 215)
HSLhsl(274, 65%, 56%)
HSVhsv(274, 68%, 84%)
CMYKcmyk(29.3%, 67.9%, 0%, 15.7%)
CIE-LABlab(46.76, 59.53, -60.96)
CIE-LCHlch(46.76, 85.21, 314.32°)
OKLaboklab(56.73% 0.1293 -0.1728)
OKLCHoklch(56.73% 0.216 306.8)
XYZxyz(27.3401, 15.8382, 65.8936)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845D7 #84D745
analogous
#4F45D7 #9845D7 #D745CD
triadic
#9845D7 #D79845 #45D798
tetradic
#9845D7 #D74F45 #84D745 #45CDD7
square
#9845D7 #D74F45 #84D745 #45CDD7
split-complementary
#9845D7 #CDD745 #45D74F
monochromatic
#581D85 #7927B7 #9845D7 #B477E2 #D0AAED

Accessibility & contrast

On white

5.04
#9845D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9845D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845D7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845D7#FFFFFF#000000##FFFFFF
##9845D71.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#1C6FD4
Tritanopia (blue-blind)
#8D6589
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9845d7;
/* rgb */ color: rgb(152, 69, 215);
/* oklch */ color: oklch(56.7% 0.216 306.8);
Tailwind
colors: {
  custom: {
    50: '#bb7fe4',
    500: '#9845d7',
    950: '#000000',
  },
}
SCSS
$custom: #9845d7;
$custom-light: #bb7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#9845d7",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 274.11,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56726,
    "c": 0.21584,
    "h": 306.8
  },
  "luminance": 0.15838
}

Semantic roles & 50–950 ramp

primary
#9845D7
secondary
#B8DA9E
accent
#E84088
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9845D7

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

Preview Lab → · Contrast checker → · Palette generator →

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