#8A4FB7#8A4FB7

#8A4FB7 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.163 H 308.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A4FB7
RGBrgb(138, 79, 183)
HSLhsl(274, 42%, 51%)
HSVhsv(274, 57%, 72%)
CMYKcmyk(24.6%, 56.8%, 0%, 28.2%)
CIE-LABlab(44.82, 44.01, -45.66)
CIE-LCHlch(44.82, 63.42, 313.94°)
OKLaboklab(54.3% 0.1006 -0.1285)
OKLCHoklch(54.3% 0.163 308.1)
XYZxyz(21.8227, 14.4144, 46.4232)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FB7 #7CB74F
analogous
#564FB7 #8A4FB7 #B74FB0
triadic
#8A4FB7 #B78A4F #4FB78A
tetradic
#8A4FB7 #B7564F #7CB74F #4FB0B7
square
#8A4FB7 #B7564F #7CB74F #4FB0B7
split-complementary
#8A4FB7 #B0B74F #4FB756
monochromatic
#4A2963 #6A3A8F #8A4FB7 #A77AC9 #C4A6DB

Accessibility & contrast

On white

5.41
#8A4FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8A4FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FB7
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FB7#FFFFFF#000000##FFFFFF
##8A4FB71.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BA
Deuteranopia (green-blind)
#416BB4
Tritanopia (blue-blind)
#83627B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4fb7;
/* rgb */ color: rgb(138, 79, 183);
/* oklch */ color: oklch(54.3% 0.163 308.1);
Tailwind
colors: {
  custom: {
    50: '#af83cd',
    500: '#8a4fb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fb7;
$custom-light: #af83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fb7",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 274.038,
    "s": 41.935,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54296,
    "c": 0.16318,
    "h": 308.1
  },
  "luminance": 0.14414
}

Semantic roles & 50–950 ramp

primary
#8A4FB7
secondary
#AEC89A
accent
#D2568C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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