#8A4FB2#8A4FB2

#8A4FB2 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.157 H 309.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8A4FB2
RGBrgb(138, 79, 178)
HSLhsl(276, 39%, 50%)
HSVhsv(276, 56%, 70%)
CMYKcmyk(22.5%, 55.6%, 0%, 30.2%)
CIE-LABlab(44.53, 42.84, -43.20)
CIE-LCHlch(44.53, 60.84, 314.77°)
OKLaboklab(53.99% 0.1004 -0.1212)
OKLCHoklch(53.99% 0.157 309.6)
XYZxyz(21.3116, 14.2100, 43.7310)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FB2 #77B24F
analogous
#594FB2 #8A4FB2 #B24FA8
triadic
#8A4FB2 #B28A4F #4FB28A
tetradic
#8A4FB2 #B2594F #77B24F #4FA8B2
square
#8A4FB2 #B2594F #77B24F #4FA8B2
split-complementary
#8A4FB2 #A8B24F #4FB259
monochromatic
#48295E #693C88 #8A4FB2 #A67AC5 #C3A4D7

Accessibility & contrast

On white

5.47
#8A4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8A4FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FB2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FB2#FFFFFF#000000##FFFFFF
##8A4FB21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3067B5
Deuteranopia (green-blind)
#456AB0
Tritanopia (blue-blind)
#856179
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4fb2;
/* rgb */ color: rgb(138, 79, 178);
/* oklch */ color: oklch(54.0% 0.157 309.6);
Tailwind
colors: {
  custom: {
    50: '#af83c9',
    500: '#8a4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fb2;
$custom-light: #af83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fb2",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 275.758,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5399,
    "c": 0.15743,
    "h": 309.6
  },
  "luminance": 0.1421
}

Semantic roles & 50–950 ramp

primary
#8A4FB2
secondary
#AAC498
accent
#CF5989
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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