#8031A2#8031A2

#8031A2 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.181 H 313.8°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8031A2
RGBrgb(128, 49, 162)
HSLhsl(282, 54%, 41%)
HSVhsv(282, 70%, 64%)
CMYKcmyk(21%, 69.8%, 0%, 36.5%)
CIE-LABlab(36.73, 51.74, -46.24)
CIE-LCHlch(36.73, 69.39, 318.21°)
OKLaboklab(47.73% 0.125 -0.1303)
OKLCHoklch(47.73% 0.181 313.8)
XYZxyz(16.5209, 9.3950, 35.1186)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031A2 #53A231
analogous
#4831A2 #8031A2 #A2318C
triadic
#8031A2 #A28031 #31A280
tetradic
#8031A2 #A24831 #53A231 #318CA2
square
#8031A2 #A24831 #53A231 #318CA2
split-complementary
#8031A2 #8CA231 #31A248
monochromatic
#361544 #5B2373 #8031A2 #A148C8 #BA77D6

Accessibility & contrast

On white

7.29
#8031A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8031A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8031A2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031A2#FFFFFF#000000##FFFFFF
##8031A21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#2A589F
Tritanopia (blue-blind)
#7D4866
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8031a2;
/* rgb */ color: rgb(128, 49, 162);
/* oklch */ color: oklch(47.7% 0.181 313.8);
Tailwind
colors: {
  custom: {
    50: '#a870be',
    500: '#8031a2',
    950: '#000000',
  },
}
SCSS
$custom: #8031a2;
$custom-light: #a870be;
$custom-dark: #000000;
JSON
{
  "hex": "#8031a2",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 281.947,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47731,
    "c": 0.18052,
    "h": 313.8
  },
  "luminance": 0.09394
}

Semantic roles & 50–950 ramp

primary
#8031A2
secondary
#88BE71
accent
#DD4B77
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #8031A2

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

Preview Lab → · Contrast checker → · Palette generator →

#8031A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva