#9845D1#9845D1

#9845D1 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.3% C 0.210 H 308.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9845D1
RGBrgb(152, 69, 209)
HSLhsl(276, 60%, 55%)
HSVhsv(276, 67%, 82%)
CMYKcmyk(27.3%, 67%, 0%, 18%)
CIE-LABlab(46.36, 58.20, -58.17)
CIE-LCHlch(46.36, 82.28, 315.01°)
OKLaboklab(56.31% 0.1299 -0.1647)
OKLCHoklch(56.31% 0.21 308.3)
XYZxyz(26.5833, 15.5355, 61.9075)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845D1 #7ED145
analogous
#5245D1 #9845D1 #D145C4
triadic
#9845D1 #D19845 #45D198
tetradic
#9845D1 #D15245 #7ED145 #45C4D1
square
#9845D1 #D15245 #7ED145 #45C4D1
split-complementary
#9845D1 #C4D145 #45D152
monochromatic
#571F7D #792BAE #9845D1 #B376DD #CEA7E9

Accessibility & contrast

On white

5.11
#9845D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9845D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845D1
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845D1#FFFFFF#000000##FFFFFF
##9845D11.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#286FCE
Tritanopia (blue-blind)
#8F6385
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9845d1;
/* rgb */ color: rgb(152, 69, 209);
/* oklch */ color: oklch(56.3% 0.210 308.3);
Tailwind
colors: {
  custom: {
    50: '#bb7ee0',
    500: '#9845d1',
    950: '#000000',
  },
}
SCSS
$custom: #9845d1;
$custom-light: #bb7ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#9845d1",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 275.571,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5631,
    "c": 0.20973,
    "h": 308.3
  },
  "luminance": 0.15535
}

Semantic roles & 50–950 ramp

primary
#9845D1
secondary
#B3D79B
accent
#E34485
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845D1

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

Preview Lab → · Contrast checker → · Palette generator →

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