#8A38AC#8A38AC

#8A38AC is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.5% C 0.185 H 314.3°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8A38AC
RGBrgb(138, 56, 172)
HSLhsl(282, 51%, 45%)
HSVhsv(282, 67%, 67%)
CMYKcmyk(19.8%, 67.4%, 0%, 32.5%)
CIE-LABlab(39.93, 53.00, -47.00)
CIE-LCHlch(39.93, 70.84, 318.43°)
OKLaboklab(50.53% 0.1293 -0.1322)
OKLCHoklch(50.53% 0.185 314.3)
XYZxyz(19.3406, 11.2108, 40.1668)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38AC #5AAC38
analogous
#5038AC #8A38AC #AC3894
triadic
#8A38AC #AC8A38 #38AC8A
tetradic
#8A38AC #AC5038 #5AAC38 #3894AC
square
#8A38AC #AC5038 #5AAC38 #3894AC
split-complementary
#8A38AC #94AC38 #38AC50
monochromatic
#401A50 #65297E #8A38AC #A858C9 #C087D8

Accessibility & contrast

On white

6.48
#8A38AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A38AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38AC
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38AC#FFFFFF#000000##FFFFFF
##8A38AC1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#3360A9
Tritanopia (blue-blind)
#874F6D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a38ac;
/* rgb */ color: rgb(138, 56, 172);
/* oklch */ color: oklch(50.5% 0.185 314.3);
Tailwind
colors: {
  custom: {
    50: '#b075c5',
    500: '#8a38ac',
    950: '#000000',
  },
}
SCSS
$custom: #8a38ac;
$custom-light: #b075c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38ac",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 282.414,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50531,
    "c": 0.18493,
    "h": 314.3
  },
  "luminance": 0.1121
}

Semantic roles & 50–950 ramp

primary
#8A38AC
secondary
#92C27E
accent
#DA4D77
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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