#8A2FA2#8A2FA2

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

Color values

HEX#8A2FA2
RGBrgb(138, 47, 162)
HSLhsl(287, 55%, 41%)
HSVhsv(287, 71%, 64%)
CMYKcmyk(14.8%, 71%, 0%, 36.5%)
CIE-LABlab(37.92, 54.80, -44.25)
CIE-LCHlch(37.92, 70.43, 321.08°)
OKLaboklab(48.89% 0.1398 -0.1241)
OKLCHoklch(48.89% 0.187 318.4)
XYZxyz(18.0184, 10.0458, 35.1653)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA2 #47A22F
analogous
#502FA2 #8A2FA2 #A22F80
triadic
#8A2FA2 #A28A2F #2FA28A
tetradic
#8A2FA2 #A2502F #47A22F #2F80A2
square
#8A2FA2 #A2502F #47A22F #2F80A2
split-complementary
#8A2FA2 #80A22F #2FA250
monochromatic
#391343 #622173 #8A2FA2 #AE45C9 #C275D7

Accessibility & contrast

On white

6.98
#8A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2FA2
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA2#FFFFFF#000000##FFFFFF
##8A2FA21.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#355C9F
Tritanopia (blue-blind)
#8A4565
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2fa2;
/* rgb */ color: rgb(138, 47, 162);
/* oklch */ color: oklch(48.9% 0.187 318.4);
Tailwind
colors: {
  custom: {
    50: '#b070be',
    500: '#8a2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa2;
$custom-light: #b070be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa2",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 287.478,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48888,
    "c": 0.18698,
    "h": 318.4
  },
  "luminance": 0.10045
}

Semantic roles & 50–950 ramp

primary
#8A2FA2
secondary
#7FBF6E
accent
#DE4969
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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