#8A2BA8#8A2BA8

#8A2BA8 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.197 H 316.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A2BA8
RGBrgb(138, 43, 168)
HSLhsl(286, 59%, 41%)
HSVhsv(286, 74%, 66%)
CMYKcmyk(17.9%, 74.4%, 0%, 34.1%)
CIE-LABlab(37.77, 57.54, -48.10)
CIE-LCHlch(37.77, 75.00, 320.11°)
OKLaboklab(48.9% 0.1433 -0.1354)
OKLCHoklch(48.9% 0.197 316.6)
XYZxyz(18.4119, 9.9589, 37.9906)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BA8 #49A82B
analogous
#4C2BA8 #8A2BA8 #A82B88
triadic
#8A2BA8 #A88A2B #2BA88A
tetradic
#8A2BA8 #A84C2B #49A82B #2B88A8
square
#8A2BA8 #A84C2B #49A82B #2B88A8
split-complementary
#8A2BA8 #88A82B #2BA84C
monochromatic
#3A1247 #621F77 #8A2BA8 #AD42CF #C272DB

Accessibility & contrast

On white

7.02
#8A2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2BA8
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BA8#FFFFFF#000000##FFFFFF
##8A2BA81.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2ba8;
/* rgb */ color: rgb(138, 43, 168);
/* oklch */ color: oklch(48.9% 0.197 316.6);
Tailwind
colors: {
  custom: {
    50: '#b06ec2',
    500: '#8a2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ba8;
$custom-light: #b06ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ba8",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 285.6,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48902,
    "c": 0.19713,
    "h": 316.6
  },
  "luminance": 0.09958
}

Semantic roles & 50–950 ramp

primary
#8A2BA8
secondary
#81C26C
accent
#E2456B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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