#8A4EDF#8A4EDF

#8A4EDF is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.9% C 0.210 H 298.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A4EDF
RGBrgb(138, 78, 223)
HSLhsl(265, 69%, 59%)
HSVhsv(265, 65%, 87%)
CMYKcmyk(38.1%, 65%, 0%, 12.5%)
CIE-LABlab(47.21, 54.28, -64.88)
CIE-LCHlch(47.21, 84.59, 309.92°)
OKLaboklab(56.85% 0.1002 -0.1849)
OKLCHoklch(56.85% 0.21 298.5)
XYZxyz(26.5215, 16.1794, 71.5234)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EDF #A3DF4E
analogous
#4E5BDF #8A4EDF #D34EDF
triadic
#8A4EDF #DF8A4E #4EDF8A
tetradic
#8A4EDF #DF4E5B #A3DF4E #4EDFD3
square
#8A4EDF #DF4E5B #A3DF4E #4EDFD3
split-complementary
#8A4EDF #DFD34E #5BDF4E
monochromatic
#4F1B97 #6A25CB #8A4EDF #AC82E8 #CFB6F2

Accessibility & contrast

On white

4.96
#8A4EDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8A4EDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EDF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EDF#FFFFFF#000000##FFFFFF
##8A4EDF1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#006EDC
Tritanopia (blue-blind)
#766F90
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a4edf;
/* rgb */ color: rgb(138, 78, 223);
/* oklch */ color: oklch(56.9% 0.210 298.5);
Tailwind
colors: {
  custom: {
    50: '#b283ea',
    500: '#8a4edf',
    950: '#000000',
  },
}
SCSS
$custom: #8a4edf;
$custom-light: #b283ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4edf",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 223
  },
  "hsl": {
    "h": 264.828,
    "s": 69.378,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56854,
    "c": 0.21026,
    "h": 298.5
  },
  "luminance": 0.1618
}

Semantic roles & 50–950 ramp

primary
#8A4EDF
secondary
#C9E1A8
accent
#EC3CA3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4EDF

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

Preview Lab → · Contrast checker → · Palette generator →

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