#8A2AAB#8A2AAB

#8A2AAB is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.0% C 0.201 H 315.7°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8A2AAB
RGBrgb(138, 42, 171)
HSLhsl(285, 61%, 42%)
HSVhsv(285, 75%, 67%)
CMYKcmyk(19.3%, 75.4%, 0%, 32.9%)
CIE-LABlab(37.84, 58.51, -49.77)
CIE-LCHlch(37.84, 76.81, 319.62°)
OKLaboklab(49.02% 0.1439 -0.1403)
OKLCHoklch(49.02% 0.201 315.7)
XYZxyz(18.6587, 10.0002, 39.4675)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AAB #4BAB2A
analogous
#4A2AAB #8A2AAB #AB2A8C
triadic
#8A2AAB #AB8A2A #2AAB8A
tetradic
#8A2AAB #AB4A2A #4BAB2A #2A8CAB
square
#8A2AAB #AB4A2A #4BAB2A #2A8CAB
split-complementary
#8A2AAB #8CAB2A #2AAB4A
monochromatic
#3B1249 #621E7A #8A2AAB #AC42D1 #C273DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2AAB#FFFFFF#000000##FFFFFF
##8A2AAB1.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)
#0054AF
Deuteranopia (green-blind)
#275CA8
Tritanopia (blue-blind)
#884669
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2aab;
/* rgb */ color: rgb(138, 42, 171);
/* oklch */ color: oklch(49.0% 0.201 315.7);
Tailwind
colors: {
  custom: {
    50: '#b06ec5',
    500: '#8a2aab',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aab;
$custom-light: #b06ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aab",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 284.651,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49019,
    "c": 0.20093,
    "h": 315.7
  },
  "luminance": 0.09999
}

Semantic roles & 50–950 ramp

primary
#8A2AAB
secondary
#83C46D
accent
#E4446D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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