#8A4FE7#8A4FE7

#8A4FE7 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.6% C 0.218 H 296.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A4FE7
RGBrgb(138, 79, 231)
HSLhsl(263, 76%, 61%)
HSVhsv(263, 66%, 91%)
CMYKcmyk(40.3%, 65.8%, 0%, 9.4%)
CIE-LABlab(47.96, 55.79, -68.19)
CIE-LCHlch(47.96, 88.10, 309.29°)
OKLaboklab(57.57% 0.0982 -0.1946)
OKLCHoklch(57.57% 0.218 296.8)
XYZxyz(27.6973, 16.7642, 77.3624)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FE7 #ACE74F
analogous
#4F60E7 #8A4FE7 #D64FE7
triadic
#8A4FE7 #E78A4F #4FE78A
tetradic
#8A4FE7 #E74F60 #ACE74F #4FE7D6
square
#8A4FE7 #E74F60 #ACE74F #4FE7D6
split-complementary
#8A4FE7 #E7D64F #60E74F
monochromatic
#4E17A5 #671EDB #8A4FE7 #AE85EE #D2BBF6

Accessibility & contrast

On white

4.82
#8A4FE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8A4FE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FE7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FE7#FFFFFF#000000##FFFFFF
##8A4FE71.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#0070E4
Tritanopia (blue-blind)
#737394
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a4fe7;
/* rgb */ color: rgb(138, 79, 231);
/* oklch */ color: oklch(57.6% 0.218 296.8);
Tailwind
colors: {
  custom: {
    50: '#b384f0',
    500: '#8a4fe7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fe7;
$custom-light: #b384f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fe7",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 231
  },
  "hsl": {
    "h": 263.289,
    "s": 76,
    "l": 60.784
  },
  "oklch": {
    "l": 0.57574,
    "c": 0.21798,
    "h": 296.8
  },
  "luminance": 0.16765
}

Semantic roles & 50–950 ramp

primary
#8A4FE7
secondary
#CFE6AC
accent
#D80D89
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A4FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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