#8A56A2#8A56A2

#8A56A2 is a mid, vivid purple. Relative luminance 0.147; OKLCH L 54.2% C 0.127 H 314.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A56A2
RGBrgb(138, 86, 162)
HSLhsl(281, 31%, 49%)
HSVhsv(281, 47%, 64%)
CMYKcmyk(14.8%, 46.9%, 0%, 36.5%)
CIE-LABlab(45.18, 35.33, -32.74)
CIE-LCHlch(45.18, 48.17, 317.18°)
OKLaboklab(54.19% 0.0888 -0.0909)
OKLCHoklch(54.19% 0.127 314.3)
XYZxyz(20.3296, 14.6680, 35.9357)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56A2 #6EA256
analogous
#6456A2 #8A56A2 #A25694
triadic
#8A56A2 #A28A56 #56A28A
tetradic
#8A56A2 #A26456 #6EA256 #5694A2
square
#8A56A2 #A26456 #6EA256 #5694A2
split-complementary
#8A56A2 #94A256 #56A264
monochromatic
#462C52 #68417A #8A56A2 #A67CB9 #C1A4CF

Accessibility & contrast

On white

5.34
#8A56A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8A56A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56A2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56A2#FFFFFF#000000##FFFFFF
##8A56A21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4768A5
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#886174
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a56a2;
/* rgb */ color: rgb(138, 86, 162);
/* oklch */ color: oklch(54.2% 0.127 314.3);
Tailwind
colors: {
  custom: {
    50: '#ae87be',
    500: '#8a56a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a56a2;
$custom-light: #ae87be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56a2",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 281.053,
    "s": 30.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5419,
    "c": 0.12705,
    "h": 314.3
  },
  "luminance": 0.14667
}

Semantic roles & 50–950 ramp

primary
#8A56A2
secondary
#A3BC98
accent
#C76181
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A56A2

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

Preview Lab → · Contrast checker → · Palette generator →

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