#8A56CA#8A56CA

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

Color values

HEX#8A56CA
RGBrgb(138, 86, 202)
HSLhsl(267, 52%, 56%)
HSVhsv(267, 57%, 79%)
CMYKcmyk(31.7%, 57.4%, 0%, 20.8%)
CIE-LABlab(47.40, 44.81, -52.57)
CIE-LCHlch(47.40, 69.08, 310.44°)
OKLaboklab(56.55% 0.092 -0.1487)
OKLCHoklch(56.55% 0.175 301.7)
XYZxyz(24.4672, 16.3230, 57.7273)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56CA #96CA56
analogous
#565CCA #8A56CA #C456CA
triadic
#8A56CA #CA8A56 #56CA8A
tetradic
#8A56CA #CA565C #96CA56 #56CAC4
square
#8A56CA #CA565C #96CA56 #56CAC4
split-complementary
#8A56CA #CAC456 #5CCA56
monochromatic
#4E287E #6B36AD #8A56CA #AA85D9 #CBB3E7

Accessibility & contrast

On white

4.92
#8A56CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A56CA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56CA#FFFFFF#000000##FFFFFF
##8A56CA1.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2270CE
Deuteranopia (green-blind)
#3770C7
Tritanopia (blue-blind)
#7D6D88
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a56ca;
/* rgb */ color: rgb(138, 86, 202);
/* oklch */ color: oklch(56.5% 0.175 301.7);
Tailwind
colors: {
  custom: {
    50: '#b088db',
    500: '#8a56ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a56ca;
$custom-light: #b088db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56ca",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 266.897,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5655,
    "c": 0.17487,
    "h": 301.7
  },
  "luminance": 0.16323
}

Semantic roles & 50–950 ramp

primary
#8A56CA
secondary
#C0D6A6
accent
#DC4C9B
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A56CA

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

Preview Lab → · Contrast checker → · Palette generator →

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