#8A56DE#8A56DE

#8A56DE is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.9% C 0.199 H 297.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A56DE
RGBrgb(138, 86, 222)
HSLhsl(263, 67%, 60%)
HSVhsv(263, 61%, 87%)
CMYKcmyk(37.8%, 61.3%, 0%, 12.9%)
CIE-LABlab(48.68, 49.87, -61.93)
CIE-LCHlch(48.68, 79.52, 308.84°)
OKLaboklab(57.89% 0.0915 -0.1762)
OKLCHoklch(57.89% 0.199 297.4)
XYZxyz(26.9905, 17.3324, 71.0165)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56DE #AADE56
analogous
#5666DE #8A56DE #CE56DE
triadic
#8A56DE #DE8A56 #56DE8A
tetradic
#8A56DE #DE5666 #AADE56 #56DECE
square
#8A56DE #DE5666 #AADE56 #56DECE
split-complementary
#8A56DE #DECE56 #66DE56
monochromatic
#4E1E9B #6828CE #8A56DE #AD89E8 #D1BCF2

Accessibility & contrast

On white

4.70
#8A56DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8A56DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56DE
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56DE#FFFFFF#000000##FFFFFF
##8A56DE1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E2
Deuteranopia (green-blind)
#1472DB
Tritanopia (blue-blind)
#767492
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a56de;
/* rgb */ color: rgb(138, 86, 222);
/* oklch */ color: oklch(57.9% 0.199 297.4);
Tailwind
colors: {
  custom: {
    50: '#b188e9',
    500: '#8a56de',
    950: '#000000',
  },
}
SCSS
$custom: #8a56de;
$custom-light: #b188e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56de",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 222
  },
  "hsl": {
    "h": 262.941,
    "s": 67.327,
    "l": 60.392
  },
  "oklch": {
    "l": 0.57894,
    "c": 0.19855,
    "h": 297.4
  },
  "luminance": 0.17333
}

Semantic roles & 50–950 ramp

primary
#8A56DE
secondary
#CEE2AE
accent
#CF1689
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A56DE

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

Preview Lab → · Contrast checker → · Palette generator →

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