#8A38AF#8A38AF

#8A38AF is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.188 H 313.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8A38AF
RGBrgb(138, 56, 175)
HSLhsl(281, 52%, 45%)
HSVhsv(281, 68%, 69%)
CMYKcmyk(21.1%, 68%, 0%, 31.4%)
CIE-LABlab(40.13, 53.63, -48.47)
CIE-LCHlch(40.13, 72.29, 317.89°)
OKLaboklab(50.73% 0.1291 -0.1366)
OKLCHoklch(50.73% 0.188 313.4)
XYZxyz(19.6319, 11.3274, 41.7014)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38AF #5DAF38
analogous
#4F38AF #8A38AF #AF3898
triadic
#8A38AF #AF8A38 #38AF8A
tetradic
#8A38AF #AF4F38 #5DAF38 #3898AF
square
#8A38AF #AF4F38 #5DAF38 #3898AF
split-complementary
#8A38AF #98AF38 #38AF4F
monochromatic
#411A52 #652981 #8A38AF #A75ACA #C088D9

Accessibility & contrast

On white

6.43
#8A38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38AF
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38AF#FFFFFF#000000##FFFFFF
##8A38AF1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#3060AC
Tritanopia (blue-blind)
#86506F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a38af;
/* rgb */ color: rgb(138, 56, 175);
/* oklch */ color: oklch(50.7% 0.188 313.4);
Tailwind
colors: {
  custom: {
    50: '#b075c7',
    500: '#8a38af',
    950: '#000000',
  },
}
SCSS
$custom: #8a38af;
$custom-light: #b075c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38af",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 281.345,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50731,
    "c": 0.18791,
    "h": 313.4
  },
  "luminance": 0.11327
}

Semantic roles & 50–950 ramp

primary
#8A38AF
secondary
#95C380
accent
#DB4D79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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