#8A56AF#8A56AF

#8A56AF is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.9% C 0.142 H 309.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A56AF
RGBrgb(138, 86, 175)
HSLhsl(275, 36%, 51%)
HSVhsv(275, 51%, 69%)
CMYKcmyk(21.1%, 50.9%, 0%, 31.4%)
CIE-LABlab(45.84, 38.29, -39.35)
CIE-LCHlch(45.84, 54.91, 314.22°)
OKLaboklab(54.91% 0.0905 -0.11)
OKLCHoklch(54.91% 0.143 309.4)
XYZxyz(21.5454, 15.1543, 42.3392)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56AF #7BAF56
analogous
#5D56AF #8A56AF #AF56A7
triadic
#8A56AF #AF8A56 #56AF8A
tetradic
#8A56AF #AF5D56 #7BAF56 #56A7AF
square
#8A56AF #AF5D56 #7BAF56 #56A7AF
split-complementary
#8A56AF #A7AF56 #56AF5D
monochromatic
#492D5E #6A4088 #8A56AF #A780C3 #C4A9D6

Accessibility & contrast

On white

5.21
#8A56AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8A56AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56AF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56AF#FFFFFF#000000##FFFFFF
##8A56AF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6AB2
Deuteranopia (green-blind)
#4E6DAD
Tritanopia (blue-blind)
#85657A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a56af;
/* rgb */ color: rgb(138, 86, 175);
/* oklch */ color: oklch(54.9% 0.142 309.4);
Tailwind
colors: {
  custom: {
    50: '#ae87c7',
    500: '#8a56af',
    950: '#000000',
  },
}
SCSS
$custom: #8a56af;
$custom-light: #ae87c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56af",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 175
  },
  "hsl": {
    "h": 275.056,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54905,
    "c": 0.1425,
    "h": 309.4
  },
  "luminance": 0.15154
}

Semantic roles & 50–950 ramp

primary
#8A56AF
secondary
#ADC49D
accent
#CC5C8A
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8A56AF

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

Preview Lab → · Contrast checker → · Palette generator →

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