#8A2799#8A2799

#8A2799 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.188 H 322.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8A2799
RGBrgb(138, 39, 153)
HSLhsl(292, 59%, 38%)
HSVhsv(292, 75%, 60%)
CMYKcmyk(9.8%, 74.5%, 0%, 40%)
CIE-LABlab(36.28, 56.12, -41.44)
CIE-LCHlch(36.28, 69.76, 323.56°)
OKLaboklab(47.53% 0.1486 -0.1158)
OKLCHoklch(47.53% 0.188 322.1)
XYZxyz(16.9559, 9.1552, 31.0048)
Luminance0.0915 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2799 #369927
analogous
#512799 #8A2799 #99276F
triadic
#8A2799 #998A27 #27998A
tetradic
#8A2799 #995127 #369927 #276F99
square
#8A2799 #995127 #369927 #276F99
split-complementary
#8A2799 #6F9927 #279951
monochromatic
#320E37 #5E1B68 #8A2799 #B633CA #C863D7

Accessibility & contrast

On white

7.42
#8A2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2799
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2799#FFFFFF#000000##FFFFFF
##8A27991.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#375996
Tritanopia (blue-blind)
#8C3D5E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2799;
/* rgb */ color: rgb(138, 39, 153);
/* oklch */ color: oklch(47.5% 0.188 322.1);
Tailwind
colors: {
  custom: {
    50: '#b06cb8',
    500: '#8a2799',
    950: '#000000',
  },
}
SCSS
$custom: #8a2799;
$custom-light: #b06cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2799",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 292.105,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47533,
    "c": 0.1884,
    "h": 322.1
  },
  "luminance": 0.09154
}

Semantic roles & 50–950 ramp

primary
#8A2799
secondary
#6BBD5F
accent
#E3455A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A2799

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

Preview Lab → · Contrast checker → · Palette generator →

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