#8A2BA9#8A2BA9

#8A2BA9 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.198 H 316.3°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8A2BA9
RGBrgb(138, 43, 169)
HSLhsl(285, 59%, 42%)
HSVhsv(285, 75%, 66%)
CMYKcmyk(18.3%, 74.6%, 0%, 33.7%)
CIE-LABlab(37.84, 57.74, -48.59)
CIE-LCHlch(37.84, 75.46, 319.92°)
OKLaboklab(48.97% 0.1432 -0.1368)
OKLCHoklch(48.97% 0.198 316.3)
XYZxyz(18.5054, 9.9963, 38.4831)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BA9 #4AA92B
analogous
#4B2BA9 #8A2BA9 #A92B89
triadic
#8A2BA9 #A98A2B #2BA98A
tetradic
#8A2BA9 #A94B2B #4AA92B #2B89A9
square
#8A2BA9 #A94B2B #4AA92B #2B89A9
split-complementary
#8A2BA9 #89A92B #2BA94B
monochromatic
#3A1247 #621F78 #8A2BA9 #AC42CF #C273DB

Accessibility & contrast

On white

7.00
#8A2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A2BA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BA9
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BA9#FFFFFF#000000##FFFFFF
##8A2BA91.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#2B5CA6
Tritanopia (blue-blind)
#884668
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ba9;
/* rgb */ color: rgb(138, 43, 169);
/* oklch */ color: oklch(49.0% 0.198 316.3);
Tailwind
colors: {
  custom: {
    50: '#b06ec3',
    500: '#8a2ba9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ba9;
$custom-light: #b06ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ba9",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 285.238,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48971,
    "c": 0.19803,
    "h": 316.3
  },
  "luminance": 0.09996
}

Semantic roles & 50–950 ramp

primary
#8A2BA9
secondary
#82C36D
accent
#E3456C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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