#9845D5#9845D5

#9845D5 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.6% C 0.214 H 307.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9845D5
RGBrgb(152, 69, 213)
HSLhsl(275, 63%, 55%)
HSVhsv(275, 68%, 84%)
CMYKcmyk(28.6%, 67.6%, 0%, 16.5%)
CIE-LABlab(46.63, 59.09, -60.03)
CIE-LCHlch(46.63, 84.23, 314.54°)
OKLaboklab(56.59% 0.1295 -0.1701)
OKLCHoklch(56.59% 0.214 307.3)
XYZxyz(27.0847, 15.7361, 64.5484)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845D5 #82D545
analogous
#5045D5 #9845D5 #D545CA
triadic
#9845D5 #D59845 #45D598
tetradic
#9845D5 #D55045 #82D545 #45CAD5
square
#9845D5 #D55045 #82D545 #45CAD5
split-complementary
#9845D5 #CAD545 #45D550
monochromatic
#571D82 #7929B4 #9845D5 #B477E0 #CFA9EC

Accessibility & contrast

On white

5.06
#9845D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9845D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845D5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845D5#FFFFFF#000000##FFFFFF
##9845D51.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#216FD2
Tritanopia (blue-blind)
#8E6588
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9845d5;
/* rgb */ color: rgb(152, 69, 213);
/* oklch */ color: oklch(56.6% 0.214 307.3);
Tailwind
colors: {
  custom: {
    50: '#bb7fe3',
    500: '#9845d5',
    950: '#000000',
  },
}
SCSS
$custom: #9845d5;
$custom-light: #bb7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#9845d5",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 274.583,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56586,
    "c": 0.2138,
    "h": 307.3
  },
  "luminance": 0.15736
}

Semantic roles & 50–950 ramp

primary
#9845D5
secondary
#B6D99D
accent
#E64287
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9845D5

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

Preview Lab → · Contrast checker → · Palette generator →

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