#8A56CC#8A56CC

#8A56CC is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.7% C 0.177 H 301.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A56CC
RGBrgb(138, 86, 204)
HSLhsl(266, 54%, 57%)
HSVhsv(266, 58%, 80%)
CMYKcmyk(32.4%, 57.8%, 0%, 20%)
CIE-LABlab(47.52, 45.31, -53.52)
CIE-LCHlch(47.52, 70.12, 310.25°)
OKLaboklab(56.68% 0.092 -0.1515)
OKLCHoklch(56.68% 0.177 301.3)
XYZxyz(24.7055, 16.4184, 58.9825)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56CC #98CC56
analogous
#565DCC #8A56CC #C556CC
triadic
#8A56CC #CC8A56 #56CC8A
tetradic
#8A56CC #CC565D #98CC56 #56CCC5
square
#8A56CC #CC565D #98CC56 #56CCC5
split-complementary
#8A56CC #CCC556 #5DCC56
monochromatic
#4E2781 #6B35B0 #8A56CC #AB85DA #CBB4E8

Accessibility & contrast

On white

4.90
#8A56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8A56CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56CC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56CC#FFFFFF#000000##FFFFFF
##8A56CC1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E70D0
Deuteranopia (green-blind)
#3570C9
Tritanopia (blue-blind)
#7D6E89
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a56cc;
/* rgb */ color: rgb(138, 86, 204);
/* oklch */ color: oklch(56.7% 0.177 301.3);
Tailwind
colors: {
  custom: {
    50: '#b088dc',
    500: '#8a56cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a56cc;
$custom-light: #b088dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56cc",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 266.441,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56679,
    "c": 0.17725,
    "h": 301.3
  },
  "luminance": 0.16418
}

Semantic roles & 50–950 ramp

primary
#8A56CC
secondary
#C2D7A7
accent
#DD4B9D
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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