#8A2BA5#8A2BA5

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

Color values

HEX#8A2BA5
RGBrgb(138, 43, 165)
HSLhsl(287, 59%, 41%)
HSVhsv(287, 74%, 65%)
CMYKcmyk(16.4%, 73.9%, 0%, 35.3%)
CIE-LABlab(37.57, 56.95, -46.62)
CIE-LCHlch(37.57, 73.60, 320.70°)
OKLaboklab(48.7% 0.1436 -0.131)
OKLCHoklch(48.7% 0.194 317.6)
XYZxyz(18.1357, 9.8484, 36.5357)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BA5 #46A52B
analogous
#4D2BA5 #8A2BA5 #A52B83
triadic
#8A2BA5 #A58A2B #2BA58A
tetradic
#8A2BA5 #A54D2B #46A52B #2B83A5
square
#8A2BA5 #A54D2B #46A52B #2B83A5
split-complementary
#8A2BA5 #83A52B #2BA54D
monochromatic
#391244 #611E74 #8A2BA5 #AE40CD #C371DA

Accessibility & contrast

On white

7.07
#8A2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2BA5
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BA5#FFFFFF#000000##FFFFFF
##8A2BA51.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2F5BA2
Tritanopia (blue-blind)
#894466
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2ba5;
/* rgb */ color: rgb(138, 43, 165);
/* oklch */ color: oklch(48.7% 0.194 317.6);
Tailwind
colors: {
  custom: {
    50: '#b06ec0',
    500: '#8a2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ba5;
$custom-light: #b06ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ba5",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 286.721,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48696,
    "c": 0.19443,
    "h": 317.6
  },
  "luminance": 0.09848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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