#8A56CD#8A56CD

#8A56CD is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.7% C 0.178 H 301.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A56CD
RGBrgb(138, 86, 205)
HSLhsl(266, 54%, 57%)
HSVhsv(266, 58%, 80%)
CMYKcmyk(32.7%, 58%, 0%, 19.6%)
CIE-LABlab(47.58, 45.56, -54.00)
CIE-LCHlch(47.58, 70.65, 310.16°)
OKLaboklab(56.75% 0.092 -0.1529)
OKLCHoklch(56.75% 0.178 301)
XYZxyz(24.8259, 16.4665, 59.6162)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56CD #99CD56
analogous
#565ECD #8A56CD #C556CD
triadic
#8A56CD #CD8A56 #56CD8A
tetradic
#8A56CD #CD565E #99CD56 #56CDC5
square
#8A56CD #CD565E #99CD56 #56CDC5
split-complementary
#8A56CD #CDC556 #5ECD56
monochromatic
#4F2682 #6B34B1 #8A56CD #AB85DB #CBB4E9

Accessibility & contrast

On white

4.89
#8A56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56CD
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56CD#FFFFFF#000000##FFFFFF
##8A56CD1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C70D1
Deuteranopia (green-blind)
#3470CA
Tritanopia (blue-blind)
#7C6E89
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a56cd;
/* rgb */ color: rgb(138, 86, 205);
/* oklch */ color: oklch(56.7% 0.178 301.0);
Tailwind
colors: {
  custom: {
    50: '#b088dd',
    500: '#8a56cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a56cd;
$custom-light: #b088dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56cd",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 266.218,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56745,
    "c": 0.17844,
    "h": 301
  },
  "luminance": 0.16467
}

Semantic roles & 50–950 ramp

primary
#8A56CD
secondary
#C2D8A7
accent
#DE4A9D
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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