#8A4FE2#8A4FE2

#8A4FE2 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.2% C 0.212 H 297.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A4FE2
RGBrgb(138, 79, 226)
HSLhsl(264, 72%, 60%)
HSVhsv(264, 65%, 89%)
CMYKcmyk(38.9%, 65%, 0%, 11.4%)
CIE-LABlab(47.61, 54.53, -65.94)
CIE-LCHlch(47.61, 85.56, 309.59°)
OKLaboklab(57.21% 0.0988 -0.188)
OKLCHoklch(57.21% 0.212 297.7)
XYZxyz(27.0012, 16.4858, 73.6963)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FE2 #A7E24F
analogous
#4F5DE2 #8A4FE2 #D44FE2
triadic
#8A4FE2 #E28A4F #4FE28A
tetradic
#8A4FE2 #E24F5D #A7E24F #4FE2D4
square
#8A4FE2 #E24F5D #A7E24F #4FE2D4
split-complementary
#8A4FE2 #E2D44F #5DE24F
monochromatic
#4E1A9D #6922D1 #8A4FE2 #AD84EB #D0B8F3

Accessibility & contrast

On white

4.89
#8A4FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8A4FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FE2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FE2#FFFFFF#000000##FFFFFF
##8A4FE21.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006FDF
Tritanopia (blue-blind)
#757192
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a4fe2;
/* rgb */ color: rgb(138, 79, 226);
/* oklch */ color: oklch(57.2% 0.212 297.7);
Tailwind
colors: {
  custom: {
    50: '#b284ec',
    500: '#8a4fe2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fe2;
$custom-light: #b284ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fe2",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 264.082,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57206,
    "c": 0.21236,
    "h": 297.7
  },
  "luminance": 0.16486
}

Semantic roles & 50–950 ramp

primary
#8A4FE2
secondary
#CCE3AA
accent
#EE39A6
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8A4FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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