#8A2BA7#8A2BA7

#8A2BA7 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.196 H 317.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8A2BA7
RGBrgb(138, 43, 167)
HSLhsl(286, 59%, 41%)
HSVhsv(286, 74%, 65%)
CMYKcmyk(17.4%, 74.3%, 0%, 34.5%)
CIE-LABlab(37.70, 57.35, -47.60)
CIE-LCHlch(37.70, 74.53, 320.30°)
OKLaboklab(48.83% 0.1434 -0.1339)
OKLCHoklch(48.83% 0.196 317)
XYZxyz(18.3191, 9.9218, 37.5019)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BA7 #48A72B
analogous
#4C2BA7 #8A2BA7 #A72B86
triadic
#8A2BA7 #A78A2B #2BA78A
tetradic
#8A2BA7 #A74C2B #48A72B #2B86A7
square
#8A2BA7 #A74C2B #48A72B #2B86A7
split-complementary
#8A2BA7 #86A72B #2BA74C
monochromatic
#3A1246 #621E76 #8A2BA7 #AD41CE #C272DB

Accessibility & contrast

On white

7.04
#8A2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2BA7
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BA7#FFFFFF#000000##FFFFFF
##8A2BA71.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#2D5BA4
Tritanopia (blue-blind)
#884567
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ba7;
/* rgb */ color: rgb(138, 43, 167);
/* oklch */ color: oklch(48.8% 0.196 317.0);
Tailwind
colors: {
  custom: {
    50: '#b06ec2',
    500: '#8a2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ba7;
$custom-light: #b06ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ba7",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 285.968,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48833,
    "c": 0.19623,
    "h": 317
  },
  "luminance": 0.09921
}

Semantic roles & 50–950 ramp

primary
#8A2BA7
secondary
#80C26C
accent
#E2466A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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