#8A4FA2#8A4FA2

#8A4FA2 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.1% C 0.139 H 315.4°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A4FA2
RGBrgb(138, 79, 162)
HSLhsl(283, 34%, 47%)
HSVhsv(283, 51%, 64%)
CMYKcmyk(14.8%, 51.2%, 0%, 36.5%)
CIE-LABlab(43.66, 39.23, -35.12)
CIE-LCHlch(43.66, 52.66, 318.16°)
OKLaboklab(53.06% 0.0991 -0.0977)
OKLCHoklch(53.06% 0.139 315.4)
XYZxyz(19.7978, 13.6044, 35.7584)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FA2 #67A24F
analogous
#614FA2 #8A4FA2 #A24F90
triadic
#8A4FA2 #A28A4F #4FA28A
tetradic
#8A4FA2 #A2614F #67A24F #4F90A2
square
#8A4FA2 #A2614F #67A24F #4F90A2
split-complementary
#8A4FA2 #90A24F #4FA261
monochromatic
#442750 #673B79 #8A4FA2 #A673BB #C09CCF

Accessibility & contrast

On white

5.64
#8A4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8A4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FA2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FA2#FFFFFF#000000##FFFFFF
##8A4FA21.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D64A5
Deuteranopia (green-blind)
#4F69A0
Tritanopia (blue-blind)
#895C71
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4fa2;
/* rgb */ color: rgb(138, 79, 162);
/* oklch */ color: oklch(53.1% 0.139 315.4);
Tailwind
colors: {
  custom: {
    50: '#ae82be',
    500: '#8a4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fa2;
$custom-light: #ae82be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fa2",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 282.651,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.53064,
    "c": 0.13915,
    "h": 315.4
  },
  "luminance": 0.13604
}

Semantic roles & 50–950 ramp

primary
#8A4FA2
secondary
#9DBC91
accent
#CB5D7D
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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