#8A56E3#8A56E3

#8A56E3 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.2% C 0.204 H 296.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8A56E3
RGBrgb(138, 86, 227)
HSLhsl(262, 72%, 61%)
HSVhsv(262, 62%, 89%)
CMYKcmyk(39.2%, 62.1%, 0%, 11%)
CIE-LABlab(49.01, 51.16, -64.22)
CIE-LCHlch(49.01, 82.11, 308.54°)
OKLaboklab(58.25% 0.0912 -0.183)
OKLCHoklch(58.25% 0.204 296.5)
XYZxyz(27.6706, 17.6044, 74.5983)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56E3 #AFE356
analogous
#5669E3 #8A56E3 #D156E3
triadic
#8A56E3 #E38A56 #56E38A
tetradic
#8A56E3 #E35669 #AFE356 #56E3D1
square
#8A56E3 #E35669 #AFE356 #56E3D1
split-complementary
#8A56E3 #E3D156 #69E356
monochromatic
#4D1BA4 #6624D8 #8A56E3 #AE8BEC #D3BFF4

Accessibility & contrast

On white

4.64
#8A56E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8A56E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56E3
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56E3#FFFFFF#000000##FFFFFF
##8A56E31.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#0073E0
Tritanopia (blue-blind)
#747695
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a56e3;
/* rgb */ color: rgb(138, 86, 227);
/* oklch */ color: oklch(58.2% 0.204 296.5);
Tailwind
colors: {
  custom: {
    50: '#b288ed',
    500: '#8a56e3',
    950: '#000000',
  },
}
SCSS
$custom: #8a56e3;
$custom-light: #b288ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56e3",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 227
  },
  "hsl": {
    "h": 262.128,
    "s": 71.574,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58245,
    "c": 0.20441,
    "h": 296.5
  },
  "luminance": 0.17605
}

Semantic roles & 50–950 ramp

primary
#8A56E3
secondary
#D1E5B0
accent
#D4128C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A56E3

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

Preview Lab → · Contrast checker → · Palette generator →

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