#8A56C9#8A56C9

#8A56C9 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.5% C 0.174 H 302.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A56C9
RGBrgb(138, 86, 201)
HSLhsl(267, 52%, 56%)
HSVhsv(267, 57%, 79%)
CMYKcmyk(31.3%, 57.2%, 0%, 21.2%)
CIE-LABlab(47.33, 44.56, -52.09)
CIE-LCHlch(47.33, 68.55, 310.55°)
OKLaboklab(56.49% 0.092 -0.1473)
OKLCHoklch(56.49% 0.174 302)
XYZxyz(24.3492, 16.2758, 57.1058)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56C9 #95C956
analogous
#565CC9 #8A56C9 #C456C9
triadic
#8A56C9 #C98A56 #56C98A
tetradic
#8A56C9 #C9565C #95C956 #56C9C4
square
#8A56C9 #C9565C #95C956 #56C9C4
split-complementary
#8A56C9 #C9C456 #5CC956
monochromatic
#4E287D #6B37AB #8A56C9 #AA84D8 #CAB3E7

Accessibility & contrast

On white

4.94
#8A56C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8A56C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56C9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56C9#FFFFFF#000000##FFFFFF
##8A56C91.004.944.264.94
#FFFFFF4.941.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236FCD
Deuteranopia (green-blind)
#3970C6
Tritanopia (blue-blind)
#7E6D87
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a56c9;
/* rgb */ color: rgb(138, 86, 201);
/* oklch */ color: oklch(56.5% 0.174 302.0);
Tailwind
colors: {
  custom: {
    50: '#b088da',
    500: '#8a56c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a56c9;
$custom-light: #b088da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56c9",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 201
  },
  "hsl": {
    "h": 267.13,
    "s": 51.57,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56485,
    "c": 0.17367,
    "h": 302
  },
  "luminance": 0.16276
}

Semantic roles & 50–950 ramp

primary
#8A56C9
secondary
#C0D5A6
accent
#DB4D9B
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56C9

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

Preview Lab → · Contrast checker → · Palette generator →

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