#8A56B2#8A56B2

#8A56B2 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.1% C 0.146 H 308.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A56B2
RGBrgb(138, 86, 178)
HSLhsl(274, 37%, 52%)
HSVhsv(274, 52%, 70%)
CMYKcmyk(22.5%, 51.7%, 0%, 30.2%)
CIE-LABlab(46.01, 38.99, -40.85)
CIE-LCHlch(46.01, 56.48, 313.67°)
OKLaboklab(55.08% 0.0908 -0.1144)
OKLCHoklch(55.08% 0.146 308.4)
XYZxyz(21.8433, 15.2735, 43.9082)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56B2 #7EB256
analogous
#5C56B2 #8A56B2 #B256AC
triadic
#8A56B2 #B28A56 #56B28A
tetradic
#8A56B2 #B25C56 #7EB256 #56ACB2
square
#8A56B2 #B25C56 #7EB256 #56ACB2
split-complementary
#8A56B2 #ACB256 #56B25C
monochromatic
#4A2C61 #6A3F8B #8A56B2 #A780C5 #C4AAD8

Accessibility & contrast

On white

5.18
#8A56B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#8A56B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56B2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56B2#FFFFFF#000000##FFFFFF
##8A56B21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#84667C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a56b2;
/* rgb */ color: rgb(138, 86, 178);
/* oklch */ color: oklch(55.1% 0.146 308.4);
Tailwind
colors: {
  custom: {
    50: '#ae87c9',
    500: '#8a56b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a56b2;
$custom-light: #ae87c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56b2",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 273.913,
    "s": 37.398,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55078,
    "c": 0.1461,
    "h": 308.4
  },
  "luminance": 0.15273
}

Semantic roles & 50–950 ramp

primary
#8A56B2
secondary
#AFC69E
accent
#CD5A8C
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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