#9845DC#9845DC

#9845DC is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.1% C 0.221 H 305.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9845DC
RGBrgb(152, 69, 220)
HSLhsl(273, 68%, 57%)
HSVhsv(273, 69%, 86%)
CMYKcmyk(30.9%, 68.6%, 0%, 13.7%)
CIE-LABlab(47.10, 60.66, -63.26)
CIE-LCHlch(47.10, 87.64, 313.80°)
OKLaboklab(57.08% 0.1286 -0.1796)
OKLCHoklch(57.08% 0.221 305.6)
XYZxyz(27.9924, 16.0992, 69.3290)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845DC #89DC45
analogous
#4D45DC #9845DC #DC45D5
triadic
#9845DC #DC9845 #45DC98
tetradic
#9845DC #DC4D45 #89DC45 #45D5DC
square
#9845DC #DC4D45 #89DC45 #45D5DC
split-complementary
#9845DC #D5DC45 #45DC4D
monochromatic
#591A8C #7A24C0 #9845DC #B579E6 #D1ACEF

Accessibility & contrast

On white

4.98
#9845DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9845DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845DC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845DC#FFFFFF#000000##FFFFFF
##9845DC1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#0B70D9
Tritanopia (blue-blind)
#8C678B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9845dc;
/* rgb */ color: rgb(152, 69, 220);
/* oklch */ color: oklch(57.1% 0.221 305.6);
Tailwind
colors: {
  custom: {
    50: '#bb7fe8',
    500: '#9845dc',
    950: '#000000',
  },
}
SCSS
$custom: #9845dc;
$custom-light: #bb7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#9845dc",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 272.98,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57079,
    "c": 0.22093,
    "h": 305.6
  },
  "luminance": 0.16099
}

Semantic roles & 50–950 ramp

primary
#9845DC
secondary
#BBDDA0
accent
#EB3D8B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9845DC

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

Preview Lab → · Contrast checker → · Palette generator →

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