#8A38A2#8A38A2

#8A38A2 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.9% C 0.175 H 317.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8A38A2
RGBrgb(138, 56, 162)
HSLhsl(286, 49%, 43%)
HSVhsv(286, 65%, 64%)
CMYKcmyk(14.8%, 65.4%, 0%, 36.5%)
CIE-LABlab(39.31, 50.92, -42.03)
CIE-LCHlch(39.31, 66.02, 320.46°)
OKLaboklab(49.88% 0.1297 -0.1177)
OKLCHoklch(49.88% 0.175 317.8)
XYZxyz(18.4161, 10.8410, 35.2979)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38A2 #50A238
analogous
#5538A2 #8A38A2 #A23885
triadic
#8A38A2 #A28A38 #38A28A
tetradic
#8A38A2 #A25538 #50A238 #3885A2
square
#8A38A2 #A25538 #50A238 #3885A2
split-complementary
#8A38A2 #85A238 #38A255
monochromatic
#3D1947 #632875 #8A38A2 #AA53C4 #C181D3

Accessibility & contrast

On white

6.63
#8A38A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A38A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38A2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38A2#FFFFFF#000000##FFFFFF
##8A38A21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1357A5
Deuteranopia (green-blind)
#3C5F9F
Tritanopia (blue-blind)
#894B68
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a38a2;
/* rgb */ color: rgb(138, 56, 162);
/* oklch */ color: oklch(49.9% 0.175 317.8);
Tailwind
colors: {
  custom: {
    50: '#af74be',
    500: '#8a38a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a38a2;
$custom-light: #af74be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38a2",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 286.415,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49884,
    "c": 0.17511,
    "h": 317.8
  },
  "luminance": 0.1084
}

Semantic roles & 50–950 ramp

primary
#8A38A2
secondary
#88BD79
accent
#D8506F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A38A2

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

Preview Lab → · Contrast checker → · Palette generator →

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