#8A40A2#8A40A2

#8A40A2 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 50.9% C 0.163 H 317.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8A40A2
RGBrgb(138, 64, 162)
HSLhsl(285, 43%, 44%)
HSVhsv(285, 60%, 64%)
CMYKcmyk(14.8%, 60.5%, 0%, 36.5%)
CIE-LABlab(40.70, 47.10, -39.81)
CIE-LCHlch(40.70, 61.67, 319.80°)
OKLaboklab(50.89% 0.1197 -0.1113)
OKLCHoklch(50.89% 0.163 317.1)
XYZxyz(18.8353, 11.6794, 35.4376)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40A2 #58A240
analogous
#5940A2 #8A40A2 #A24089
triadic
#8A40A2 #A28A40 #40A28A
tetradic
#8A40A2 #A25940 #58A240 #4089A2
square
#8A40A2 #A25940 #58A240 #4089A2
split-complementary
#8A40A2 #89A240 #40A259
monochromatic
#3F1D4A #652F76 #8A40A2 #A85FC0 #C08BD1

Accessibility & contrast

On white

6.30
#8A40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40A2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40A2#FFFFFF#000000##FFFFFF
##8A40A21.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA5
Deuteranopia (green-blind)
#4262A0
Tritanopia (blue-blind)
#89506B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a40a2;
/* rgb */ color: rgb(138, 64, 162);
/* oklch */ color: oklch(50.9% 0.163 317.1);
Tailwind
colors: {
  custom: {
    50: '#af79be',
    500: '#8a40a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a40a2;
$custom-light: #af79be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40a2",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 285.306,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50892,
    "c": 0.16341,
    "h": 317.1
  },
  "luminance": 0.11679
}

Semantic roles & 50–950 ramp

primary
#8A40A2
secondary
#90BC82
accent
#D35574
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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