#8A2BA3#8A2BA3

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

Color values

HEX#8A2BA3
RGBrgb(138, 43, 163)
HSLhsl(288, 58%, 40%)
HSVhsv(288, 74%, 64%)
CMYKcmyk(15.3%, 73.6%, 0%, 36.1%)
CIE-LABlab(37.44, 56.56, -45.63)
CIE-LCHlch(37.44, 72.67, 321.11°)
OKLaboklab(48.56% 0.1438 -0.1281)
OKLCHoklch(48.56% 0.193 318.3)
XYZxyz(17.9551, 9.7762, 35.5844)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BA3 #44A32B
analogous
#4E2BA3 #8A2BA3 #A32B80
triadic
#8A2BA3 #A38A2B #2BA38A
tetradic
#8A2BA3 #A34E2B #44A32B #2B80A3
square
#8A2BA3 #A34E2B #44A32B #2B80A3
split-complementary
#8A2BA3 #80A32B #2BA34E
monochromatic
#381142 #611E73 #8A2BA3 #AF3FCC #C36FD9

Accessibility & contrast

On white

7.11
#8A2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2BA3
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BA3#FFFFFF#000000##FFFFFF
##8A2BA31.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#315BA0
Tritanopia (blue-blind)
#894365
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2ba3;
/* rgb */ color: rgb(138, 43, 163);
/* oklch */ color: oklch(48.6% 0.193 318.3);
Tailwind
colors: {
  custom: {
    50: '#b06ebf',
    500: '#8a2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ba3;
$custom-light: #b06ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ba3",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 287.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48561,
    "c": 0.19264,
    "h": 318.3
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#8A2BA3
secondary
#7CC06A
accent
#E14667
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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