#8A2792#8A2792

#8A2792 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.182 H 324.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#8A2792
RGBrgb(138, 39, 146)
HSLhsl(296, 58%, 36%)
HSVhsv(296, 73%, 57%)
CMYKcmyk(5.5%, 73.3%, 0%, 42.7%)
CIE-LABlab(35.85, 54.83, -37.86)
CIE-LCHlch(35.85, 66.63, 325.38°)
OKLaboklab(47.09% 0.1489 -0.1054)
OKLCHoklch(47.09% 0.182 324.7)
XYZxyz(16.3946, 8.9307, 28.0488)
Luminance0.0893 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2792 #2F9227
analogous
#552792 #8A2792 #922765
triadic
#8A2792 #928A27 #27928A
tetradic
#8A2792 #925527 #2F9227 #276592
square
#8A2792 #925527 #2F9227 #276592
split-complementary
#8A2792 #659227 #279255
monochromatic
#2F0D31 #5C1A62 #8A2792 #B834C2 #CC5FD4

Accessibility & contrast

On white

7.54
#8A2792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A2792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2792
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2792#FFFFFF#000000##FFFFFF
##8A27921.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044D95
Deuteranopia (green-blind)
#3C588F
Tritanopia (blue-blind)
#8D395A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2792;
/* rgb */ color: rgb(138, 39, 146);
/* oklch */ color: oklch(47.1% 0.182 324.7);
Tailwind
colors: {
  custom: {
    50: '#b06bb2',
    500: '#8a2792',
    950: '#000000',
  },
}
SCSS
$custom: #8a2792;
$custom-light: #b06bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2792",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 295.514,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47087,
    "c": 0.18244,
    "h": 324.7
  },
  "luminance": 0.0893
}

Semantic roles & 50–950 ramp

primary
#8A2792
secondary
#62BA5B
accent
#E14752
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A2792

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

Preview Lab → · Contrast checker → · Palette generator →

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