#8A38AA#8A38AA

#8A38AA is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.4% C 0.183 H 315.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8A38AA
RGBrgb(138, 56, 170)
HSLhsl(283, 50%, 44%)
HSVhsv(283, 67%, 67%)
CMYKcmyk(18.8%, 67.1%, 0%, 33.3%)
CIE-LABlab(39.81, 52.58, -46.02)
CIE-LCHlch(39.81, 69.87, 318.81°)
OKLaboklab(50.4% 0.1294 -0.1294)
OKLCHoklch(50.4% 0.183 315)
XYZxyz(19.1499, 11.1346, 39.1628)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38AA #58AA38
analogous
#5138AA #8A38AA #AA3891
triadic
#8A38AA #AA8A38 #38AA8A
tetradic
#8A38AA #AA5138 #58AA38 #3891AA
square
#8A38AA #AA5138 #58AA38 #3891AA
split-complementary
#8A38AA #91AA38 #38AA51
monochromatic
#3F1A4E #65297C #8A38AA #A857C8 #C085D7

Accessibility & contrast

On white

6.51
#8A38AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A38AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38AA
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38AA#FFFFFF#000000##FFFFFF
##8A38AA1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#3560A7
Tritanopia (blue-blind)
#874E6C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a38aa;
/* rgb */ color: rgb(138, 56, 170);
/* oklch */ color: oklch(50.4% 0.183 315.0);
Tailwind
colors: {
  custom: {
    50: '#b075c4',
    500: '#8a38aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a38aa;
$custom-light: #b075c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38aa",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 283.158,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50399,
    "c": 0.18296,
    "h": 315
  },
  "luminance": 0.11134
}

Semantic roles & 50–950 ramp

primary
#8A38AA
secondary
#90C17D
accent
#DA4E75
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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