#8A2FA9#8A2FA9

#8A2FA9 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.193 H 316.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8A2FA9
RGBrgb(138, 47, 169)
HSLhsl(285, 56%, 42%)
HSVhsv(285, 72%, 66%)
CMYKcmyk(18.3%, 72.2%, 0%, 33.7%)
CIE-LABlab(38.38, 56.20, -47.71)
CIE-LCHlch(38.38, 73.72, 319.67°)
OKLaboklab(49.36% 0.1392 -0.1343)
OKLCHoklch(49.36% 0.193 316)
XYZxyz(18.6581, 10.3016, 38.5340)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA9 #4EA92F
analogous
#4D2FA9 #8A2FA9 #A92F8B
triadic
#8A2FA9 #A98A2F #2FA98A
tetradic
#8A2FA9 #A94D2F #4EA92F #2F8BA9
square
#8A2FA9 #A94D2F #4EA92F #2F8BA9
split-complementary
#8A2FA9 #8BA92F #2FA94D
monochromatic
#3C1449 #632279 #8A2FA9 #AB49CC #C179DA

Accessibility & contrast

On white

6.86
#8A2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A2FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FA9
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA9#FFFFFF#000000##FFFFFF
##8A2FA91.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AC
Deuteranopia (green-blind)
#2E5DA6
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2fa9;
/* rgb */ color: rgb(138, 47, 169);
/* oklch */ color: oklch(49.4% 0.193 316.0);
Tailwind
colors: {
  custom: {
    50: '#b070c3',
    500: '#8a2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa9;
$custom-light: #b070c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa9",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 284.754,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49357,
    "c": 0.19344,
    "h": 316
  },
  "luminance": 0.10301
}

Semantic roles & 50–950 ramp

primary
#8A2FA9
secondary
#86C272
accent
#E0486F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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