#8A2AA3#8A2AA3

#8A2AA3 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.194 H 318.4°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#8A2AA3
RGBrgb(138, 42, 163)
HSLhsl(288, 59%, 40%)
HSVhsv(288, 74%, 64%)
CMYKcmyk(15.3%, 74.2%, 0%, 36.1%)
CIE-LABlab(37.31, 56.93, -45.84)
CIE-LCHlch(37.31, 73.09, 321.16°)
OKLaboklab(48.47% 0.1448 -0.1287)
OKLCHoklch(48.47% 0.194 318.4)
XYZxyz(17.9191, 9.7044, 35.5725)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA3 #43A32A
analogous
#4D2AA3 #8A2AA3 #A32A80
triadic
#8A2AA3 #A38A2A #2AA38A
tetradic
#8A2AA3 #A34D2A #43A32A #2A80A3
square
#8A2AA3 #A34D2A #43A32A #2A80A3
split-complementary
#8A2AA3 #80A32A #2AA34D
monochromatic
#381142 #611D72 #8A2AA3 #AF3DCD #C36EDA

Accessibility & contrast

On white

7.14
#8A2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A2AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AA3
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA3#FFFFFF#000000##FFFFFF
##8A2AA31.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#305BA0
Tritanopia (blue-blind)
#894364
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2aa3;
/* rgb */ color: rgb(138, 42, 163);
/* oklch */ color: oklch(48.5% 0.194 318.4);
Tailwind
colors: {
  custom: {
    50: '#b06ebf',
    500: '#8a2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa3;
$custom-light: #b06ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa3",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 287.603,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48468,
    "c": 0.19378,
    "h": 318.4
  },
  "luminance": 0.09704
}

Semantic roles & 50–950 ramp

primary
#8A2AA3
secondary
#7BC068
accent
#E24666
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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