#8A2FAF#8A2FAF

#8A2FAF is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.8% C 0.199 H 314.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8A2FAF
RGBrgb(138, 47, 175)
HSLhsl(283, 58%, 44%)
HSVhsv(283, 73%, 69%)
CMYKcmyk(21.1%, 73.1%, 0%, 31.4%)
CIE-LABlab(38.78, 57.43, -50.64)
CIE-LCHlch(38.78, 76.56, 318.59°)
OKLaboklab(49.77% 0.1386 -0.1429)
OKLCHoklch(49.77% 0.199 314.1)
XYZxyz(19.2343, 10.5321, 41.5688)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FAF #54AF2F
analogous
#4A2FAF #8A2FAF #AF2F94
triadic
#8A2FAF #AF8A2F #2FAF8A
tetradic
#8A2FAF #AF4A2F #54AF2F #2F94AF
square
#8A2FAF #AF4A2F #54AF2F #2F94AF
split-complementary
#8A2FAF #94AF2F #2FAF4A
monochromatic
#3E154F #64227F #8A2FAF #A94CCF #C07CDC

Accessibility & contrast

On white

6.76
#8A2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A2FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FAF
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FAF#FFFFFF#000000##FFFFFF
##8A2FAF1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#275DAC
Tritanopia (blue-blind)
#864B6C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2faf;
/* rgb */ color: rgb(138, 47, 175);
/* oklch */ color: oklch(49.8% 0.199 314.1);
Tailwind
colors: {
  custom: {
    50: '#b070c8',
    500: '#8a2faf',
    950: '#000000',
  },
}
SCSS
$custom: #8a2faf;
$custom-light: #b070c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2faf",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 282.656,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49771,
    "c": 0.19901,
    "h": 314.1
  },
  "luminance": 0.10531
}

Semantic roles & 50–950 ramp

primary
#8A2FAF
secondary
#8CC475
accent
#E14773
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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