#8A4FE5#8A4FE5

#8A4FE5 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.4% C 0.216 H 297.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8A4FE5
RGBrgb(138, 79, 229)
HSLhsl(264, 74%, 60%)
HSVhsv(264, 66%, 90%)
CMYKcmyk(39.7%, 65.5%, 0%, 10.2%)
CIE-LABlab(47.82, 55.29, -67.29)
CIE-LCHlch(47.82, 87.09, 309.41°)
OKLaboklab(57.43% 0.0985 -0.192)
OKLCHoklch(57.43% 0.216 297.2)
XYZxyz(27.4164, 16.6519, 75.8832)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FE5 #AAE54F
analogous
#4F5FE5 #8A4FE5 #D54FE5
triadic
#8A4FE5 #E58A4F #4FE58A
tetradic
#8A4FE5 #E54F5F #AAE54F #4FE5D5
square
#8A4FE5 #E54F5F #AAE54F #4FE5D5
split-complementary
#8A4FE5 #E5D54F #5FE54F
monochromatic
#4E18A2 #6820D7 #8A4FE5 #AD84ED #D1BAF5

Accessibility & contrast

On white

4.85
#8A4FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8A4FE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FE5
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FE5#FFFFFF#000000##FFFFFF
##8A4FE51.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EA
Deuteranopia (green-blind)
#0070E2
Tritanopia (blue-blind)
#737293
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a4fe5;
/* rgb */ color: rgb(138, 79, 229);
/* oklch */ color: oklch(57.4% 0.216 297.2);
Tailwind
colors: {
  custom: {
    50: '#b284ee',
    500: '#8a4fe5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fe5;
$custom-light: #b284ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fe5",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 229
  },
  "hsl": {
    "h": 263.6,
    "s": 74.257,
    "l": 60.392
  },
  "oklch": {
    "l": 0.57426,
    "c": 0.21574,
    "h": 297.2
  },
  "luminance": 0.16652
}

Semantic roles & 50–950 ramp

primary
#8A4FE5
secondary
#CEE5AB
accent
#D60F88
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8A4FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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