#9845B2#9845B2

#9845B2 is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.3% C 0.178 H 317.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9845B2
RGBrgb(152, 69, 178)
HSLhsl(286, 44%, 48%)
HSVhsv(286, 61%, 70%)
CMYKcmyk(14.6%, 61.2%, 0%, 30.2%)
CIE-LABlab(44.44, 51.55, -43.23)
CIE-LCHlch(44.44, 67.28, 320.02°)
OKLaboklab(54.31% 0.1312 -0.1209)
OKLCHoklch(54.31% 0.178 317.3)
XYZxyz(23.1117, 14.1469, 43.6240)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845B2 #5FB245
analogous
#6145B2 #9845B2 #B24595
triadic
#9845B2 #B29845 #45B298
tetradic
#9845B2 #B26145 #5FB245 #4595B2
square
#9845B2 #B26145 #5FB245 #4595B2
split-complementary
#9845B2 #95B245 #45B261
monochromatic
#4D235A #723486 #9845B2 #B16EC7 #C99AD8

Accessibility & contrast

On white

5.48
#9845B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9845B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845B2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845B2#FFFFFF#000000##FFFFFF
##9845B21.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#486CAF
Tritanopia (blue-blind)
#975875
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9845b2;
/* rgb */ color: rgb(152, 69, 178);
/* oklch */ color: oklch(54.3% 0.178 317.3);
Tailwind
colors: {
  custom: {
    50: '#b97ec9',
    500: '#9845b2',
    950: '#000000',
  },
}
SCSS
$custom: #9845b2;
$custom-light: #b97ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#9845b2",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 285.688,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54313,
    "c": 0.17837,
    "h": 317.3
  },
  "luminance": 0.14146
}

Semantic roles & 50–950 ramp

primary
#9845B2
secondary
#9CC48F
accent
#D45472
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9845B2

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

Preview Lab → · Contrast checker → · Palette generator →

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