#8A56CB#8A56CB

#8A56CB is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.6% C 0.176 H 301.5°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A56CB
RGBrgb(138, 86, 203)
HSLhsl(267, 53%, 57%)
HSVhsv(267, 58%, 80%)
CMYKcmyk(32%, 57.6%, 0%, 20.4%)
CIE-LABlab(47.46, 45.06, -53.05)
CIE-LCHlch(47.46, 69.60, 310.35°)
OKLaboklab(56.61% 0.092 -0.1501)
OKLCHoklch(56.61% 0.176 301.5)
XYZxyz(24.5860, 16.3706, 58.3529)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56CB #97CB56
analogous
#565DCB #8A56CB #C556CB
triadic
#8A56CB #CB8A56 #56CB8A
tetradic
#8A56CB #CB565D #97CB56 #56CBC5
square
#8A56CB #CB565D #97CB56 #56CBC5
split-complementary
#8A56CB #CBC556 #5DCB56
monochromatic
#4E277F #6B36AE #8A56CB #AA85D9 #CBB4E8

Accessibility & contrast

On white

4.91
#8A56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8A56CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56CB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56CB#FFFFFF#000000##FFFFFF
##8A56CB1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2070CF
Deuteranopia (green-blind)
#3670C8
Tritanopia (blue-blind)
#7D6E88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a56cb;
/* rgb */ color: rgb(138, 86, 203);
/* oklch */ color: oklch(56.6% 0.176 301.5);
Tailwind
colors: {
  custom: {
    50: '#b088db',
    500: '#8a56cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a56cb;
$custom-light: #b088db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56cb",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 266.667,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56614,
    "c": 0.17606,
    "h": 301.5
  },
  "luminance": 0.16371
}

Semantic roles & 50–950 ramp

primary
#8A56CB
secondary
#C1D6A6
accent
#DC4B9C
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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