#8A2AC7#8A2AC7

#8A2AC7 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.1% C 0.226 H 307.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#8A2AC7
RGBrgb(138, 42, 199)
HSLhsl(277, 65%, 47%)
HSVhsv(277, 79%, 78%)
CMYKcmyk(30.7%, 78.9%, 0%, 22%)
CIE-LABlab(39.89, 64.31, -62.96)
CIE-LCHlch(39.89, 90.00, 315.60°)
OKLaboklab(51.1% 0.1385 -0.179)
OKLCHoklch(51.1% 0.226 307.7)
XYZxyz(21.6158, 11.1830, 55.0416)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AC7 #67C72A
analogous
#3C2AC7 #8A2AC7 #C72AB5
triadic
#8A2AC7 #C78A2A #2AC78A
tetradic
#8A2AC7 #C73C2A #67C72A #2AB5C7
square
#8A2AC7 #C73C2A #67C72A #2AB5C7
split-complementary
#8A2AC7 #B5C72A #2AC73C
monochromatic
#441562 #671F94 #8A2AC7 #A653DB #C086E5

Accessibility & contrast

On white

6.49
#8A2AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A2AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2AC7
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AC7#FFFFFF#000000##FFFFFF
##8A2AC71.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#805379
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a2ac7;
/* rgb */ color: rgb(138, 42, 199);
/* oklch */ color: oklch(51.1% 0.226 307.7);
Tailwind
colors: {
  custom: {
    50: '#b26fd9',
    500: '#8a2ac7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ac7;
$custom-light: #b26fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ac7",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 276.688,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.511,
    "c": 0.22634,
    "h": 307.7
  },
  "luminance": 0.11183
}

Semantic roles & 50–950 ramp

primary
#8A2AC7
secondary
#9DCF7E
accent
#E84081
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A2AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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