#8A2EA3#8A2EA3

#8A2EA3 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.189 H 318.1°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8A2EA3
RGBrgb(138, 46, 163)
HSLhsl(287, 56%, 41%)
HSVhsv(287, 72%, 64%)
CMYKcmyk(15.3%, 71.8%, 0%, 36.1%)
CIE-LABlab(37.85, 55.40, -44.97)
CIE-LCHlch(37.85, 71.35, 320.93°)
OKLaboklab(48.85% 0.1408 -0.1262)
OKLCHoklch(48.85% 0.189 318.1)
XYZxyz(18.0682, 10.0024, 35.6222)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA3 #47A32E
analogous
#4F2EA3 #8A2EA3 #A32E81
triadic
#8A2EA3 #A38A2E #2EA38A
tetradic
#8A2EA3 #A34F2E #47A32E #2E81A3
square
#8A2EA3 #A34F2E #47A32E #2E81A3
split-complementary
#8A2EA3 #81A32E #2EA34F
monochromatic
#391344 #622173 #8A2EA3 #AE44CA #C274D8

Accessibility & contrast

On white

7.00
#8A2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A2EA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EA3
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA3#FFFFFF#000000##FFFFFF
##8A2EA31.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#335CA0
Tritanopia (blue-blind)
#894565
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ea3;
/* rgb */ color: rgb(138, 46, 163);
/* oklch */ color: oklch(48.9% 0.189 318.1);
Tailwind
colors: {
  custom: {
    50: '#b06fbf',
    500: '#8a2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea3;
$custom-light: #b06fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea3",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 287.179,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48853,
    "c": 0.18911,
    "h": 318.1
  },
  "luminance": 0.10002
}

Semantic roles & 50–950 ramp

primary
#8A2EA3
secondary
#7FBF6D
accent
#DF4969
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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