#8A3895#8A3895

#8A3895 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.1% C 0.163 H 322.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#8A3895
RGBrgb(138, 56, 149)
HSLhsl(293, 45%, 40%)
HSVhsv(293, 62%, 58%)
CMYKcmyk(7.4%, 62.4%, 0%, 41.6%)
CIE-LABlab(38.56, 48.32, -35.39)
CIE-LCHlch(38.56, 59.89, 323.78°)
OKLaboklab(49.09% 0.1295 -0.0983)
OKLCHoklch(49.09% 0.163 322.8)
XYZxyz(17.3197, 10.4025, 29.5235)
Luminance0.1040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3895 #439538
analogous
#5B3895 #8A3895 #953872
triadic
#8A3895 #958A38 #38958A
tetradic
#8A3895 #955B38 #439538 #387295
square
#8A3895 #955B38 #439538 #387295
split-complementary
#8A3895 #729538 #38955B
monochromatic
#38173C #612769 #8A3895 #AF4EBC #C37ACD

Accessibility & contrast

On white

6.82
#8A3895 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8A3895 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3895
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3895#FFFFFF#000000##FFFFFF
##8A38951.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255598
Deuteranopia (green-blind)
#455E93
Tritanopia (blue-blind)
#8C4661
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a3895;
/* rgb */ color: rgb(138, 56, 149);
/* oklch */ color: oklch(49.1% 0.163 322.8);
Tailwind
colors: {
  custom: {
    50: '#af74b4',
    500: '#8a3895',
    950: '#000000',
  },
}
SCSS
$custom: #8a3895;
$custom-light: #af74b4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3895",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 149
  },
  "hsl": {
    "h": 292.903,
    "s": 45.366,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49092,
    "c": 0.1626,
    "h": 322.8
  },
  "luminance": 0.10402
}

Semantic roles & 50–950 ramp

primary
#8A3895
secondary
#7BB673
accent
#D55362
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3895

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

Preview Lab → · Contrast checker → · Palette generator →

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