#8A56B3#8A56B3

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

Color values

HEX#8A56B3
RGBrgb(138, 86, 179)
HSLhsl(274, 38%, 52%)
HSVhsv(274, 52%, 70%)
CMYKcmyk(22.9%, 52%, 0%, 29.8%)
CIE-LABlab(46.06, 39.23, -41.35)
CIE-LCHlch(46.06, 57.00, 313.49°)
OKLaboklab(55.14% 0.0909 -0.1159)
OKLCHoklch(55.14% 0.147 308.1)
XYZxyz(21.9441, 15.3138, 44.4389)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56B3 #7FB356
analogous
#5C56B3 #8A56B3 #B356AE
triadic
#8A56B3 #B38A56 #56B38A
tetradic
#8A56B3 #B35C56 #7FB356 #56AEB3
square
#8A56B3 #B35C56 #7FB356 #56AEB3
split-complementary
#8A56B3 #AEB356 #56B35C
monochromatic
#4B2C62 #6A3F8D #8A56B3 #A780C6 #C4AAD9

Accessibility & contrast

On white

5.17
#8A56B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8A56B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56B3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56B3#FFFFFF#000000##FFFFFF
##8A56B31.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a56b3;
/* rgb */ color: rgb(138, 86, 179);
/* oklch */ color: oklch(55.1% 0.147 308.1);
Tailwind
colors: {
  custom: {
    50: '#ae87ca',
    500: '#8a56b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a56b3;
$custom-light: #ae87ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56b3",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 179
  },
  "hsl": {
    "h": 273.548,
    "s": 37.959,
    "l": 51.961
  },
  "oklch": {
    "l": 0.55136,
    "c": 0.14729,
    "h": 308.1
  },
  "luminance": 0.15314
}

Semantic roles & 50–950 ramp

primary
#8A56B3
secondary
#B0C79E
accent
#CE5A8D
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A56B3

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

Preview Lab → · Contrast checker → · Palette generator →

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