#8A4FBD#8A4FBD

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

Color values

HEX#8A4FBD
RGBrgb(138, 79, 189)
HSLhsl(272, 45%, 53%)
HSVhsv(272, 58%, 74%)
CMYKcmyk(27%, 58.2%, 0%, 25.9%)
CIE-LABlab(45.18, 45.42, -48.60)
CIE-LCHlch(45.18, 66.52, 313.07°)
OKLaboklab(54.67% 0.1008 -0.137)
OKLCHoklch(54.67% 0.17 306.3)
XYZxyz(22.4606, 14.6696, 49.7825)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FBD #82BD4F
analogous
#534FBD #8A4FBD #BD4FB9
triadic
#8A4FBD #BD8A4F #4FBD8A
tetradic
#8A4FBD #BD534F #82BD4F #4FB9BD
square
#8A4FBD #BD534F #82BD4F #4FB9BD
split-complementary
#8A4FBD #B9BD4F #4FBD53
monochromatic
#4B286A #6B3896 #8A4FBD #A87CCE #C5A8DE

Accessibility & contrast

On white

5.34
#8A4FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8A4FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FBD
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FBD#FFFFFF#000000##FFFFFF
##8A4FBD1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2369C1
Deuteranopia (green-blind)
#3C6BBA
Tritanopia (blue-blind)
#82647E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4fbd;
/* rgb */ color: rgb(138, 79, 189);
/* oklch */ color: oklch(54.7% 0.170 306.3);
Tailwind
colors: {
  custom: {
    50: '#af83d1',
    500: '#8a4fbd',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fbd;
$custom-light: #af83d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fbd",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 189
  },
  "hsl": {
    "h": 272.182,
    "s": 45.455,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54672,
    "c": 0.1701,
    "h": 306.3
  },
  "luminance": 0.14669
}

Semantic roles & 50–950 ramp

primary
#8A4FBD
secondary
#B2CC9C
accent
#D5538F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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