#8A56F5#8A56F5

#8A56F5 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.6% C 0.225 H 293.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A56F5
RGBrgb(138, 86, 245)
HSLhsl(260, 89%, 65%)
HSVhsv(260, 65%, 96%)
CMYKcmyk(43.7%, 64.9%, 0%, 3.9%)
CIE-LABlab(50.28, 55.84, -72.29)
CIE-LCHlch(50.28, 91.35, 307.68°)
OKLaboklab(59.56% 0.0894 -0.2067)
OKLCHoklch(59.56% 0.225 293.4)
XYZxyz(30.2860, 18.6505, 88.3727)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56F5 #C1F556
analogous
#5671F5 #8A56F5 #DA56F5
triadic
#8A56F5 #F58A56 #56F58A
tetradic
#8A56F5 #F55671 #C1F556 #56F5DA
square
#8A56F5 #F55671 #C1F556 #56F5DA
split-complementary
#8A56F5 #F5DA56 #71F556
monochromatic
#480CC5 #621CF2 #8A56F5 #B290F8 #DACAFC

Accessibility & contrast

On white

4.44
#8A56F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#8A56F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A56F5
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56F5#FFFFFF#000000##000000
##8A56F51.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079FA
Deuteranopia (green-blind)
#0075F2
Tritanopia (blue-blind)
#6C7C9E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a56f5;
/* rgb */ color: rgb(138, 86, 245);
/* oklch */ color: oklch(59.6% 0.225 293.4);
Tailwind
colors: {
  custom: {
    50: '#b489f9',
    500: '#8a56f5',
    950: '#000000',
  },
}
SCSS
$custom: #8a56f5;
$custom-light: #b489f9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56f5",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 245
  },
  "hsl": {
    "h": 259.623,
    "s": 88.827,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59556,
    "c": 0.2252,
    "h": 293.4
  },
  "luminance": 0.18651
}

Semantic roles & 50–950 ramp

primary
#8A56F5
secondary
#DDEFB8
accent
#E5009A
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A56F5

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

Preview Lab → · Contrast checker → · Palette generator →

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