#8A38AD#8A38AD

#8A38AD is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.6% C 0.186 H 314.0°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A38AD
RGBrgb(138, 56, 173)
HSLhsl(282, 51%, 45%)
HSVhsv(282, 68%, 68%)
CMYKcmyk(20.2%, 67.6%, 0%, 32.2%)
CIE-LABlab(40.00, 53.21, -47.49)
CIE-LCHlch(40.00, 71.32, 318.25°)
OKLaboklab(50.6% 0.1292 -0.1337)
OKLCHoklch(50.6% 0.186 314)
XYZxyz(19.4370, 11.2494, 40.6745)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38AD #5BAD38
analogous
#4F38AD #8A38AD #AD3896
triadic
#8A38AD #AD8A38 #38AD8A
tetradic
#8A38AD #AD4F38 #5BAD38 #3896AD
square
#8A38AD #AD4F38 #5BAD38 #3896AD
split-complementary
#8A38AD #96AD38 #38AD4F
monochromatic
#401A51 #65297F #8A38AD #A859C9 #C087D8

Accessibility & contrast

On white

6.46
#8A38AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A38AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38AD
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38AD#FFFFFF#000000##FFFFFF
##8A38AD1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#3260AA
Tritanopia (blue-blind)
#874F6E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a38ad;
/* rgb */ color: rgb(138, 56, 173);
/* oklch */ color: oklch(50.6% 0.186 314.0);
Tailwind
colors: {
  custom: {
    50: '#b075c6',
    500: '#8a38ad',
    950: '#000000',
  },
}
SCSS
$custom: #8a38ad;
$custom-light: #b075c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38ad",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 282.051,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50597,
    "c": 0.18593,
    "h": 314
  },
  "luminance": 0.11249
}

Semantic roles & 50–950 ramp

primary
#8A38AD
secondary
#93C27F
accent
#DB4D78
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38AD

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

Preview Lab → · Contrast checker → · Palette generator →

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