#8A3F9B#8A3F9B

#8A3F9B is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.3% C 0.158 H 319.9°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8A3F9B
RGBrgb(138, 63, 155)
HSLhsl(289, 42%, 43%)
HSVhsv(289, 59%, 61%)
CMYKcmyk(11%, 59.4%, 0%, 39.2%)
CIE-LABlab(40.12, 46.14, -36.53)
CIE-LCHlch(40.12, 58.85, 321.63°)
OKLaboklab(50.34% 0.1207 -0.1017)
OKLCHoklch(50.34% 0.158 319.9)
XYZxyz(18.1744, 11.3256, 32.2327)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F9B #509B3F
analogous
#5C3F9B #8A3F9B #9B3F7E
triadic
#8A3F9B #9B8A3F #3F9B8A
tetradic
#8A3F9B #9B5C3F #509B3F #3F7E9B
square
#8A3F9B #9B5C3F #509B3F #3F7E9B
split-complementary
#8A3F9B #7E9B3F #3F9B5C
monochromatic
#3D1C44 #632D6F #8A3F9B #AA5BBC #C186CE

Accessibility & contrast

On white

6.43
#8A3F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A3F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F9B
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F9B#FFFFFF#000000##FFFFFF
##8A3F9B1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B599E
Deuteranopia (green-blind)
#466199
Tritanopia (blue-blind)
#8B4D67
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3f9b;
/* rgb */ color: rgb(138, 63, 155);
/* oklch */ color: oklch(50.3% 0.158 319.9);
Tailwind
colors: {
  custom: {
    50: '#af78b9',
    500: '#8a3f9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f9b;
$custom-light: #af78b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f9b",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 155
  },
  "hsl": {
    "h": 288.913,
    "s": 42.202,
    "l": 42.745
  },
  "oklch": {
    "l": 0.50342,
    "c": 0.15782,
    "h": 319.9
  },
  "luminance": 0.11325
}

Semantic roles & 50–950 ramp

primary
#8A3F9B
secondary
#88B87D
accent
#D2566D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3F9B

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

Preview Lab → · Contrast checker → · Palette generator →

#8A3F9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva