#8A2FA5#8A2FA5

#8A2FA5 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.1% C 0.190 H 317.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8A2FA5
RGBrgb(138, 47, 165)
HSLhsl(286, 56%, 42%)
HSVhsv(286, 72%, 65%)
CMYKcmyk(16.4%, 71.5%, 0%, 35.3%)
CIE-LABlab(38.12, 55.39, -45.74)
CIE-LCHlch(38.12, 71.84, 320.45°)
OKLaboklab(49.09% 0.1396 -0.1285)
OKLCHoklch(49.09% 0.19 317.4)
XYZxyz(18.2883, 10.1537, 36.5865)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA5 #4AA52F
analogous
#4F2FA5 #8A2FA5 #A52F85
triadic
#8A2FA5 #A58A2F #2FA58A
tetradic
#8A2FA5 #A54F2F #4AA52F #2F85A5
square
#8A2FA5 #A54F2F #4AA52F #2F85A5
split-complementary
#8A2FA5 #85A52F #2FA54F
monochromatic
#3A1446 #622175 #8A2FA5 #AC47CB #C276D8

Accessibility & contrast

On white

6.93
#8A2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A2FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FA5
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA5#FFFFFF#000000##FFFFFF
##8A2FA51.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#325CA2
Tritanopia (blue-blind)
#894667
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2fa5;
/* rgb */ color: rgb(138, 47, 165);
/* oklch */ color: oklch(49.1% 0.190 317.4);
Tailwind
colors: {
  custom: {
    50: '#b070c0',
    500: '#8a2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa5;
$custom-light: #b070c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa5",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 286.271,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49087,
    "c": 0.18974,
    "h": 317.4
  },
  "luminance": 0.10153
}

Semantic roles & 50–950 ramp

primary
#8A2FA5
secondary
#82C070
accent
#DF496B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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