#8A56E7#8A56E7

#8A56E7 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.5% C 0.209 H 295.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A56E7
RGBrgb(138, 86, 231)
HSLhsl(262, 75%, 62%)
HSVhsv(262, 63%, 91%)
CMYKcmyk(40.3%, 62.8%, 0%, 9.4%)
CIE-LABlab(49.29, 52.19, -66.04)
CIE-LCHlch(49.29, 84.17, 308.32°)
OKLaboklab(58.53% 0.0908 -0.1883)
OKLCHoklch(58.53% 0.209 295.8)
XYZxyz(28.2290, 17.8278, 77.5396)
Luminance0.1783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56E7 #B3E756
analogous
#566BE7 #8A56E7 #D256E7
triadic
#8A56E7 #E78A56 #56E78A
tetradic
#8A56E7 #E7566B #B3E756 #56E7D2
square
#8A56E7 #E7566B #B3E756 #56E7D2
split-complementary
#8A56E7 #E7D256 #6BE756
monochromatic
#4D18AA #6520DF #8A56E7 #AF8CEF #D4C1F6

Accessibility & contrast

On white

4.60
#8A56E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8A56E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56E7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56E7#FFFFFF#000000##FFFFFF
##8A56E71.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#0073E4
Tritanopia (blue-blind)
#727797
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a56e7;
/* rgb */ color: rgb(138, 86, 231);
/* oklch */ color: oklch(58.5% 0.209 295.8);
Tailwind
colors: {
  custom: {
    50: '#b288ef',
    500: '#8a56e7',
    950: '#000000',
  },
}
SCSS
$custom: #8a56e7;
$custom-light: #b288ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56e7",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 261.517,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.5853,
    "c": 0.20906,
    "h": 295.8
  },
  "luminance": 0.17828
}

Semantic roles & 50–950 ramp

primary
#8A56E7
secondary
#D4E7B2
accent
#D70E8F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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