#8A2EA5#8A2EA5

#8A2EA5 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.0% C 0.191 H 317.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8A2EA5
RGBrgb(138, 46, 165)
HSLhsl(286, 56%, 41%)
HSVhsv(286, 72%, 65%)
CMYKcmyk(16.4%, 72.1%, 0%, 35.3%)
CIE-LABlab(37.98, 55.79, -45.96)
CIE-LCHlch(37.98, 72.29, 320.52°)
OKLaboklab(48.99% 0.1406 -0.1291)
OKLCHoklch(48.99% 0.191 317.4)
XYZxyz(18.2488, 10.0747, 36.5734)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA5 #49A52E
analogous
#4F2EA5 #8A2EA5 #A52E85
triadic
#8A2EA5 #A58A2E #2EA58A
tetradic
#8A2EA5 #A54F2E #49A52E #2E85A5
square
#8A2EA5 #A54F2E #49A52E #2E85A5
split-complementary
#8A2EA5 #85A52E #2EA54F
monochromatic
#3A1345 #622175 #8A2EA5 #AD45CB #C275D8

Accessibility & contrast

On white

6.97
#8A2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A2EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EA5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA5#FFFFFF#000000##FFFFFF
##8A2EA51.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#315CA2
Tritanopia (blue-blind)
#894667
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ea5;
/* rgb */ color: rgb(138, 46, 165);
/* oklch */ color: oklch(49.0% 0.191 317.4);
Tailwind
colors: {
  custom: {
    50: '#b06fc0',
    500: '#8a2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea5;
$custom-light: #b06fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea5",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 286.387,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48986,
    "c": 0.19094,
    "h": 317.4
  },
  "luminance": 0.10074
}

Semantic roles & 50–950 ramp

primary
#8A2EA5
secondary
#81C06F
accent
#E0486B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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