#8A4DA8#8A4DA8

#8A4DA8 is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.1% C 0.149 H 313.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A4DA8
RGBrgb(138, 77, 168)
HSLhsl(280, 37%, 48%)
HSVhsv(280, 54%, 66%)
CMYKcmyk(17.9%, 54.2%, 0%, 34.1%)
CIE-LABlab(43.56, 41.65, -38.84)
CIE-LCHlch(43.56, 56.95, 317.00°)
OKLaboklab(53.1% 0.1025 -0.1085)
OKLCHoklch(53.1% 0.149 313.4)
XYZxyz(20.2018, 13.5387, 38.5872)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DA8 #6BA84D
analogous
#5C4DA8 #8A4DA8 #A84D98
triadic
#8A4DA8 #A88A4D #4DA88A
tetradic
#8A4DA8 #A85C4D #6BA84D #4D98A8
square
#8A4DA8 #A85C4D #6BA84D #4D98A8
split-complementary
#8A4DA8 #98A84D #4DA85C
monochromatic
#452754 #683A7E #8A4DA8 #A673BF #C19DD2

Accessibility & contrast

On white

5.66
#8A4DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8A4DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DA8
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DA8#FFFFFF#000000##FFFFFF
##8A4DA81.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3664AB
Deuteranopia (green-blind)
#4A68A6
Tritanopia (blue-blind)
#875C73
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4da8;
/* rgb */ color: rgb(138, 77, 168);
/* oklch */ color: oklch(53.1% 0.149 313.4);
Tailwind
colors: {
  custom: {
    50: '#ae81c2',
    500: '#8a4da8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4da8;
$custom-light: #ae81c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4da8",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 168
  },
  "hsl": {
    "h": 280.22,
    "s": 37.143,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53097,
    "c": 0.14925,
    "h": 313.4
  },
  "luminance": 0.13538
}

Semantic roles & 50–950 ramp

primary
#8A4DA8
secondary
#A1BF92
accent
#CD5B80
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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