#8A48B4#8A48B4

#8A48B4 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.1% C 0.171 H 310.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A48B4
RGBrgb(138, 72, 180)
HSLhsl(277, 43%, 49%)
HSVhsv(277, 60%, 71%)
CMYKcmyk(23.3%, 60%, 0%, 29.4%)
CIE-LABlab(43.26, 47.00, -46.40)
CIE-LCHlch(43.26, 66.04, 315.37°)
OKLaboklab(53.1% 0.1097 -0.1306)
OKLCHoklch(53.1% 0.171 310)
XYZxyz(21.0352, 13.3337, 44.6367)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48B4 #72B448
analogous
#5448B4 #8A48B4 #B448A8
triadic
#8A48B4 #B48A48 #48B48A
tetradic
#8A48B4 #B45448 #72B448 #48A8B4
square
#8A48B4 #B45448 #72B448 #48A8B4
split-complementary
#8A48B4 #A8B448 #48B454
monochromatic
#47255D #683788 #8A48B4 #A672C7 #C29ED8

Accessibility & contrast

On white

5.73
#8A48B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A48B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48B4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48B4#FFFFFF#000000##FFFFFF
##8A48B41.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B7
Deuteranopia (green-blind)
#3C67B1
Tritanopia (blue-blind)
#845C77
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a48b4;
/* rgb */ color: rgb(138, 72, 180);
/* oklch */ color: oklch(53.1% 0.171 310.0);
Tailwind
colors: {
  custom: {
    50: '#af7ecb',
    500: '#8a48b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a48b4;
$custom-light: #af7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48b4",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 180
  },
  "hsl": {
    "h": 276.667,
    "s": 42.857,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53098,
    "c": 0.1705,
    "h": 310
  },
  "luminance": 0.13333
}

Semantic roles & 50–950 ramp

primary
#8A48B4
secondary
#A6C593
accent
#D35586
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A48B4

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

Preview Lab → · Contrast checker → · Palette generator →

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