#8A56E2#8A56E2

#8A56E2 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.2% C 0.203 H 296.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A56E2
RGBrgb(138, 86, 226)
HSLhsl(262, 71%, 61%)
HSVhsv(262, 62%, 89%)
CMYKcmyk(38.9%, 61.9%, 0%, 11.4%)
CIE-LABlab(48.94, 50.90, -63.77)
CIE-LCHlch(48.94, 81.59, 308.60°)
OKLaboklab(58.17% 0.0912 -0.1816)
OKLCHoklch(58.17% 0.203 296.7)
XYZxyz(27.5329, 17.5493, 73.8735)
Luminance0.1755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56E2 #AEE256
analogous
#5668E2 #8A56E2 #D056E2
triadic
#8A56E2 #E28A56 #56E28A
tetradic
#8A56E2 #E25668 #AEE256 #56E2D0
square
#8A56E2 #E25668 #AEE256 #56E2D0
split-complementary
#8A56E2 #E2D056 #68E256
monochromatic
#4E1CA2 #6725D6 #8A56E2 #AE8AEB #D2BEF4

Accessibility & contrast

On white

4.66
#8A56E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8A56E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56E2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56E2#FFFFFF#000000##FFFFFF
##8A56E21.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E6
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#747594
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a56e2;
/* rgb */ color: rgb(138, 86, 226);
/* oklch */ color: oklch(58.2% 0.203 296.7);
Tailwind
colors: {
  custom: {
    50: '#b288ec',
    500: '#8a56e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a56e2;
$custom-light: #b288ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56e2",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 262.286,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58174,
    "c": 0.20324,
    "h": 296.7
  },
  "luminance": 0.1755
}

Semantic roles & 50–950 ramp

primary
#8A56E2
secondary
#D1E4B0
accent
#D3138B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A56E2

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

Preview Lab → · Contrast checker → · Palette generator →

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