#8A4FDB#8A4FDB

#8A4FDB is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.204 H 299.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A4FDB
RGBrgb(138, 79, 219)
HSLhsl(265, 66%, 58%)
HSVhsv(265, 64%, 86%)
CMYKcmyk(37%, 63.9%, 0%, 14.1%)
CIE-LABlab(47.12, 52.77, -62.75)
CIE-LCHlch(47.12, 81.99, 310.06°)
OKLaboklab(56.7% 0.0995 -0.1786)
OKLCHoklch(56.7% 0.204 299.1)
XYZxyz(26.0602, 16.1094, 68.7405)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FDB #A0DB4F
analogous
#4F5ADB #8A4FDB #D04FDB
triadic
#8A4FDB #DB8A4F #4FDB8A
tetradic
#8A4FDB #DB4F5A #A0DB4F #4FDBD0
square
#8A4FDB #DB4F5A #A0DB4F #4FDBD0
split-complementary
#8A4FDB #DBD04F #5ADB4F
monochromatic
#4F1E92 #6A28C5 #8A4FDB #AC82E5 #CEB5F0

Accessibility & contrast

On white

4.97
#8A4FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#8A4FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FDB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FDB#FFFFFF#000000##FFFFFF
##8A4FDB1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#786E8E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a4fdb;
/* rgb */ color: rgb(138, 79, 219);
/* oklch */ color: oklch(56.7% 0.204 299.1);
Tailwind
colors: {
  custom: {
    50: '#b284e7',
    500: '#8a4fdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fdb;
$custom-light: #b284e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fdb",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 265.286,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.567,
    "c": 0.20445,
    "h": 299.1
  },
  "luminance": 0.1611
}

Semantic roles & 50–950 ramp

primary
#8A4FDB
secondary
#C7DFA7
accent
#E93FA1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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