#8A3FAF#8A3FAF

#8A3FAF is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.6% C 0.178 H 312.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A3FAF
RGBrgb(138, 63, 175)
HSLhsl(280, 47%, 47%)
HSVhsv(280, 64%, 69%)
CMYKcmyk(21.1%, 64%, 0%, 31.4%)
CIE-LABlab(41.30, 50.38, -46.59)
CIE-LCHlch(41.30, 68.62, 317.24°)
OKLaboklab(51.58% 0.1209 -0.1311)
OKLCHoklch(51.58% 0.178 312.7)
XYZxyz(19.9952, 12.0540, 41.8225)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FAF #64AF3F
analogous
#523FAF #8A3FAF #AF3F9C
triadic
#8A3FAF #AF8A3F #3FAF8A
tetradic
#8A3FAF #AF523F #64AF3F #3F9CAF
square
#8A3FAF #AF523F #64AF3F #3F9CAF
split-complementary
#8A3FAF #9CAF3F #3FAF52
monochromatic
#431F55 #672F82 #8A3FAF #A664C7 #C091D7

Accessibility & contrast

On white

6.16
#8A3FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A3FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FAF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FAF#FFFFFF#000000##FFFFFF
##8A3FAF1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5EB2
Deuteranopia (green-blind)
#3763AC
Tritanopia (blue-blind)
#865471
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3faf;
/* rgb */ color: rgb(138, 63, 175);
/* oklch */ color: oklch(51.6% 0.178 312.7);
Tailwind
colors: {
  custom: {
    50: '#af79c7',
    500: '#8a3faf',
    950: '#000000',
  },
}
SCSS
$custom: #8a3faf;
$custom-light: #af79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3faf",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 280.179,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51577,
    "c": 0.17833,
    "h": 312.7
  },
  "luminance": 0.12053
}

Semantic roles & 50–950 ramp

primary
#8A3FAF
secondary
#9BC387
accent
#D7517D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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