#8A4FBA#8A4FBA

#8A4FBA is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.167 H 307.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8A4FBA
RGBrgb(138, 79, 186)
HSLhsl(273, 44%, 52%)
HSVhsv(273, 58%, 73%)
CMYKcmyk(25.8%, 57.5%, 0%, 27.1%)
CIE-LABlab(45.00, 44.71, -47.13)
CIE-LCHlch(45.00, 64.97, 313.49°)
OKLaboklab(54.48% 0.1007 -0.1328)
OKLCHoklch(54.48% 0.167 307.2)
XYZxyz(22.1383, 14.5407, 48.0852)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FBA #7FBA4F
analogous
#554FBA #8A4FBA #BA4FB5
triadic
#8A4FBA #BA8A4F #4FBA8A
tetradic
#8A4FBA #BA554F #7FBA4F #4FB5BA
square
#8A4FBA #BA554F #7FBA4F #4FB5BA
split-complementary
#8A4FBA #B5BA4F #4FBA55
monochromatic
#4B2866 #6A3992 #8A4FBA #A77BCB #C4A7DC

Accessibility & contrast

On white

5.37
#8A4FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8A4FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FBA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FBA#FFFFFF#000000##FFFFFF
##8A4FBA1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2768BD
Deuteranopia (green-blind)
#3E6BB7
Tritanopia (blue-blind)
#83637D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4fba;
/* rgb */ color: rgb(138, 79, 186);
/* oklch */ color: oklch(54.5% 0.167 307.2);
Tailwind
colors: {
  custom: {
    50: '#af83cf',
    500: '#8a4fba',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fba;
$custom-light: #af83cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fba",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 273.084,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54482,
    "c": 0.16664,
    "h": 307.2
  },
  "luminance": 0.1454
}

Semantic roles & 50–950 ramp

primary
#8A4FBA
secondary
#B0CA9B
accent
#D3548D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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