#9845AF#9845AF

#9845AF is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.1% C 0.175 H 318.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9845AF
RGBrgb(152, 69, 175)
HSLhsl(287, 43%, 48%)
HSVhsv(287, 61%, 69%)
CMYKcmyk(13.1%, 60.6%, 0%, 31.4%)
CIE-LABlab(44.27, 50.94, -41.73)
CIE-LCHlch(44.27, 65.85, 320.67°)
OKLaboklab(54.14% 0.1311 -0.1165)
OKLCHoklch(54.14% 0.175 318.4)
XYZxyz(22.8138, 14.0277, 42.0550)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845AF #5CAF45
analogous
#6345AF #9845AF #AF4591
triadic
#9845AF #AF9845 #45AF98
tetradic
#9845AF #AF6345 #5CAF45 #4591AF
square
#9845AF #AF6345 #5CAF45 #4591AF
split-complementary
#9845AF #91AF45 #45AF63
monochromatic
#4C2257 #723483 #9845AF #B26CC5 #C998D6

Accessibility & contrast

On white

5.52
#9845AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9845AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845AF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845AF#FFFFFF#000000##FFFFFF
##9845AF1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2963B2
Deuteranopia (green-blind)
#4A6BAC
Tritanopia (blue-blind)
#985673
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9845af;
/* rgb */ color: rgb(152, 69, 175);
/* oklch */ color: oklch(54.1% 0.175 318.4);
Tailwind
colors: {
  custom: {
    50: '#b97dc7',
    500: '#9845af',
    950: '#000000',
  },
}
SCSS
$custom: #9845af;
$custom-light: #b97dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9845af",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 286.981,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54135,
    "c": 0.17539,
    "h": 318.4
  },
  "luminance": 0.14027
}

Semantic roles & 50–950 ramp

primary
#9845AF
secondary
#99C28D
accent
#D35570
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9845AF

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

Preview Lab → · Contrast checker → · Palette generator →

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