#8A56C7#8A56C7

#8A56C7 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.4% C 0.171 H 302.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A56C7
RGBrgb(138, 86, 199)
HSLhsl(268, 50%, 56%)
HSVhsv(268, 57%, 78%)
CMYKcmyk(30.7%, 56.8%, 0%, 22%)
CIE-LABlab(47.21, 44.07, -51.13)
CIE-LCHlch(47.21, 67.50, 310.75°)
OKLaboklab(56.36% 0.092 -0.1445)
OKLCHoklch(56.36% 0.171 302.5)
XYZxyz(24.1155, 16.1824, 55.8748)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56C7 #93C756
analogous
#565AC7 #8A56C7 #C356C7
triadic
#8A56C7 #C78A56 #56C78A
tetradic
#8A56C7 #C7565A #93C756 #56C7C3
square
#8A56C7 #C7565A #93C756 #56C7C3
split-complementary
#8A56C7 #C7C356 #5AC756
monochromatic
#4E287A #6B38A8 #8A56C7 #AA84D6 #CAB2E5

Accessibility & contrast

On white

4.96
#8A56C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8A56C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56C7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56C7#FFFFFF#000000##FFFFFF
##8A56C71.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266FCB
Deuteranopia (green-blind)
#3B70C4
Tritanopia (blue-blind)
#7E6C86
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a56c7;
/* rgb */ color: rgb(138, 86, 199);
/* oklch */ color: oklch(56.4% 0.171 302.5);
Tailwind
colors: {
  custom: {
    50: '#b088d9',
    500: '#8a56c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a56c7;
$custom-light: #b088d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56c7",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 199
  },
  "hsl": {
    "h": 267.611,
    "s": 50.222,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56357,
    "c": 0.17128,
    "h": 302.5
  },
  "luminance": 0.16182
}

Semantic roles & 50–950 ramp

primary
#8A56C7
secondary
#BED4A5
accent
#DA4E99
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56C7

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

Preview Lab → · Contrast checker → · Palette generator →

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