#9845CC#9845CC

#9845CC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.205 H 309.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9845CC
RGBrgb(152, 69, 204)
HSLhsl(277, 57%, 54%)
HSVhsv(277, 66%, 80%)
CMYKcmyk(25.5%, 66.2%, 0%, 20%)
CIE-LABlab(46.03, 57.09, -55.82)
CIE-LCHlch(46.03, 79.85, 315.64°)
OKLaboklab(55.97% 0.1303 -0.1578)
OKLCHoklch(55.97% 0.205 309.6)
XYZxyz(25.9740, 15.2918, 58.6983)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845CC #79CC45
analogous
#5445CC #9845CC #CC45BC
triadic
#9845CC #CC9845 #45CC98
tetradic
#9845CC #CC5445 #79CC45 #45BCCC
square
#9845CC #CC5445 #79CC45 #45BCCC
split-complementary
#9845CC #BCCC45 #45CC54
monochromatic
#552076 #782EA6 #9845CC #B375D9 #CDA5E6

Accessibility & contrast

On white

5.17
#9845CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9845CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845CC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845CC#FFFFFF#000000##FFFFFF
##9845CC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#2F6EC9
Tritanopia (blue-blind)
#916183
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9845cc;
/* rgb */ color: rgb(152, 69, 204);
/* oklch */ color: oklch(56.0% 0.205 309.6);
Tailwind
colors: {
  custom: {
    50: '#ba7edc',
    500: '#9845cc',
    950: '#000000',
  },
}
SCSS
$custom: #9845cc;
$custom-light: #ba7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#9845cc",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 276.889,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5597,
    "c": 0.20464,
    "h": 309.6
  },
  "luminance": 0.15291
}

Semantic roles & 50–950 ramp

primary
#9845CC
secondary
#B0D399
accent
#E04882
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845CC

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

Preview Lab → · Contrast checker → · Palette generator →

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