#8A2EB7#8A2EB7

#8A2EB7 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.2% C 0.208 H 311.8°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A2EB7
RGBrgb(138, 46, 183)
HSLhsl(280, 60%, 45%)
HSVhsv(280, 75%, 72%)
CMYKcmyk(24.6%, 74.9%, 0%, 28.2%)
CIE-LABlab(39.20, 59.48, -54.70)
CIE-LCHlch(39.20, 80.80, 317.40°)
OKLaboklab(50.25% 0.1383 -0.1548)
OKLCHoklch(50.25% 0.208 311.8)
XYZxyz(20.0039, 10.7767, 45.8169)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EB7 #5BB72E
analogous
#462EB7 #8A2EB7 #B72E9F
triadic
#8A2EB7 #B78A2E #2EB78A
tetradic
#8A2EB7 #B7462E #5BB72E #2E9FB7
square
#8A2EB7 #B7462E #5BB72E #2E9FB7
split-complementary
#8A2EB7 #9FB72E #2EB746
monochromatic
#401555 #652286 #8A2EB7 #A84FD3 #C080DF

Accessibility & contrast

On white

6.66
#8A2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EB7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EB7#FFFFFF#000000##FFFFFF
##8A2EB71.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#185EB4
Tritanopia (blue-blind)
#844E71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2eb7;
/* rgb */ color: rgb(138, 46, 183);
/* oklch */ color: oklch(50.2% 0.208 311.8);
Tailwind
colors: {
  custom: {
    50: '#b170cd',
    500: '#8a2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eb7;
$custom-light: #b170cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eb7",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 280.292,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50246,
    "c": 0.20759,
    "h": 311.8
  },
  "luminance": 0.10776
}

Semantic roles & 50–950 ramp

primary
#8A2EB7
secondary
#93C879
accent
#E34579
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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