#8A4FD1#8A4FD1

#8A4FD1 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.0% C 0.193 H 301.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A4FD1
RGBrgb(138, 79, 209)
HSLhsl(267, 59%, 56%)
HSVhsv(267, 62%, 82%)
CMYKcmyk(34%, 62.2%, 0%, 18%)
CIE-LABlab(46.44, 50.28, -58.12)
CIE-LCHlch(46.44, 76.85, 310.86°)
OKLaboklab(56% 0.1003 -0.165)
OKLCHoklch(56% 0.193 301.3)
XYZxyz(24.7831, 15.5986, 62.0144)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FD1 #96D14F
analogous
#4F55D1 #8A4FD1 #CB4FD1
triadic
#8A4FD1 #D18A4F #4FD18A
tetradic
#8A4FD1 #D14F55 #96D14F #4FD1CB
square
#8A4FD1 #D14F55 #96D14F #4FD1CB
split-complementary
#8A4FD1 #D1CB4F #55D14F
monochromatic
#4E2283 #6B2FB4 #8A4FD1 #AA80DE #CBB0EA

Accessibility & contrast

On white

5.10
#8A4FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A4FD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FD1
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FD1#FFFFFF#000000##FFFFFF
##8A4FD11.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD5
Deuteranopia (green-blind)
#216DCE
Tritanopia (blue-blind)
#7B6B89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4fd1;
/* rgb */ color: rgb(138, 79, 209);
/* oklch */ color: oklch(56.0% 0.193 301.3);
Tailwind
colors: {
  custom: {
    50: '#b183e0',
    500: '#8a4fd1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fd1;
$custom-light: #b183e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fd1",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 209
  },
  "hsl": {
    "h": 267.231,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55998,
    "c": 0.19308,
    "h": 301.3
  },
  "luminance": 0.15599
}

Semantic roles & 50–950 ramp

primary
#8A4FD1
secondary
#C0D9A3
accent
#E2469B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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