#8A2BA4#8A2BA4

#8A2BA4 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.194 H 318.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8A2BA4
RGBrgb(138, 43, 164)
HSLhsl(287, 58%, 41%)
HSVhsv(287, 74%, 64%)
CMYKcmyk(15.9%, 73.8%, 0%, 35.7%)
CIE-LABlab(37.50, 56.75, -46.12)
CIE-LCHlch(37.50, 73.13, 320.90°)
OKLaboklab(48.63% 0.1437 -0.1296)
OKLCHoklch(48.63% 0.194 318)
XYZxyz(18.0450, 9.8122, 36.0582)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BA4 #45A42B
analogous
#4D2BA4 #8A2BA4 #A42B82
triadic
#8A2BA4 #A48A2B #2BA48A
tetradic
#8A2BA4 #A44D2B #45A42B #2B82A4
square
#8A2BA4 #A44D2B #45A42B #2B82A4
split-complementary
#8A2BA4 #82A42B #2BA44D
monochromatic
#381243 #611E74 #8A2BA4 #AE3FCD #C370D9

Accessibility & contrast

On white

7.09
#8A2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2BA4
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BA4#FFFFFF#000000##FFFFFF
##8A2BA41.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#305BA1
Tritanopia (blue-blind)
#894465
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2ba4;
/* rgb */ color: rgb(138, 43, 164);
/* oklch */ color: oklch(48.6% 0.194 318.0);
Tailwind
colors: {
  custom: {
    50: '#b06ec0',
    500: '#8a2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ba4;
$custom-light: #b06ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ba4",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 287.107,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48629,
    "c": 0.19353,
    "h": 318
  },
  "luminance": 0.09811
}

Semantic roles & 50–950 ramp

primary
#8A2BA4
secondary
#7DC16A
accent
#E24668
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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