#9A39B2#9A39B2

#9A39B2 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.196 H 319.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9A39B2
RGBrgb(154, 57, 178)
HSLhsl(288, 51%, 46%)
HSVhsv(288, 68%, 70%)
CMYKcmyk(13.5%, 68%, 0%, 30.2%)
CIE-LABlab(42.78, 57.42, -45.86)
CIE-LCHlch(42.78, 73.49, 321.38°)
OKLaboklab(53.17% 0.1478 -0.1284)
OKLCHoklch(53.17% 0.196 319)
XYZxyz(22.8244, 13.0117, 43.4201)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A39B2 #51B239
analogous
#5D39B2 #9A39B2 #B2398D
triadic
#9A39B2 #B29A39 #39B29A
tetradic
#9A39B2 #B25D39 #51B239 #398DB2
square
#9A39B2 #B25D39 #51B239 #398DB2
split-complementary
#9A39B2 #8DB239 #39B25D
monochromatic
#4A1B55 #722A84 #9A39B2 #B55DCB #CA8BDA

Accessibility & contrast

On white

5.83
#9A39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9A39B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A39B2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A39B2#FFFFFF#000000##FFFFFF
##9A39B21.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045FB6
Deuteranopia (green-blind)
#4168AF
Tritanopia (blue-blind)
#9A4F71
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9a39b2;
/* rgb */ color: rgb(154, 57, 178);
/* oklch */ color: oklch(53.2% 0.196 319.0);
Tailwind
colors: {
  custom: {
    50: '#bb77ca',
    500: '#9a39b2',
    950: '#000000',
  },
}
SCSS
$custom: #9a39b2;
$custom-light: #bb77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9a39b2",
  "rgb": {
    "r": 154,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 288.099,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53172,
    "c": 0.19581,
    "h": 319
  },
  "luminance": 0.13011
}

Semantic roles & 50–950 ramp

primary
#9A39B2
secondary
#8FC482
accent
#DB4D69
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9A39B2

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

Preview Lab → · Contrast checker → · Palette generator →

#9A39B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva