#8A4BBB#8A4BBB

#8A4BBB is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.0% C 0.174 H 307.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A4BBB
RGBrgb(138, 75, 187)
HSLhsl(274, 45%, 51%)
HSVhsv(274, 60%, 73%)
CMYKcmyk(26.2%, 59.9%, 0%, 26.7%)
CIE-LABlab(44.27, 47.06, -48.89)
CIE-LCHlch(44.27, 67.86, 313.91°)
OKLaboklab(53.97% 0.1058 -0.1379)
OKLCHoklch(53.97% 0.174 307.5)
XYZxyz(21.9651, 14.0236, 48.5538)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BBB #7CBB4B
analogous
#524BBB #8A4BBB #BB4BB4
triadic
#8A4BBB #BB8A4B #4BBB8A
tetradic
#8A4BBB #BB524B #7CBB4B #4BB4BB
square
#8A4BBB #BB524B #7CBB4B #4BB4BB
split-complementary
#8A4BBB #B4BB4B #4BBB52
monochromatic
#4A2665 #6A3792 #8A4BBB #A777CC #C4A4DD

Accessibility & contrast

On white

5.52
#8A4BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A4BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BBB
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BBB#FFFFFF#000000##FFFFFF
##8A4BBB1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B66BF
Deuteranopia (green-blind)
#3969B8
Tritanopia (blue-blind)
#82617C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4bbb;
/* rgb */ color: rgb(138, 75, 187);
/* oklch */ color: oklch(54.0% 0.174 307.5);
Tailwind
colors: {
  custom: {
    50: '#af80d0',
    500: '#8a4bbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bbb;
$custom-light: #af80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bbb",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 273.75,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53967,
    "c": 0.17382,
    "h": 307.5
  },
  "luminance": 0.14023
}

Semantic roles & 50–950 ramp

primary
#8A4BBB
secondary
#AECA98
accent
#D5538C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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