#8A4FBE#8A4FBE

#8A4FBE is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.171 H 306.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A4FBE
RGBrgb(138, 79, 190)
HSLhsl(272, 46%, 53%)
HSVhsv(272, 58%, 75%)
CMYKcmyk(27.4%, 58.4%, 0%, 25.5%)
CIE-LABlab(45.24, 45.66, -49.08)
CIE-LCHlch(45.24, 67.04, 312.93°)
OKLaboklab(54.74% 0.1008 -0.1385)
OKLCHoklch(54.74% 0.171 306)
XYZxyz(22.5695, 14.7131, 50.3561)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FBE #83BE4F
analogous
#524FBE #8A4FBE #BE4FBA
triadic
#8A4FBE #BE8A4F #4FBE8A
tetradic
#8A4FBE #BE524F #83BE4F #4FBABE
square
#8A4FBE #BE524F #83BE4F #4FBABE
split-complementary
#8A4FBE #BABE4F #4FBE52
monochromatic
#4B286B #6B3898 #8A4FBE #A87CCF #C5A8DF

Accessibility & contrast

On white

5.33
#8A4FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8A4FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FBE
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FBE#FFFFFF#000000##FFFFFF
##8A4FBE1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2169C2
Deuteranopia (green-blind)
#3B6BBB
Tritanopia (blue-blind)
#81657F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4fbe;
/* rgb */ color: rgb(138, 79, 190);
/* oklch */ color: oklch(54.7% 0.171 306.0);
Tailwind
colors: {
  custom: {
    50: '#af83d2',
    500: '#8a4fbe',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fbe;
$custom-light: #af83d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fbe",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 190
  },
  "hsl": {
    "h": 271.892,
    "s": 46.058,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54736,
    "c": 0.17126,
    "h": 306
  },
  "luminance": 0.14713
}

Semantic roles & 50–950 ramp

primary
#8A4FBE
secondary
#B3CC9C
accent
#D65290
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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