#8A48B3#8A48B3

#8A48B3 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.0% C 0.169 H 310.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A48B3
RGBrgb(138, 72, 179)
HSLhsl(277, 43%, 49%)
HSVhsv(277, 60%, 70%)
CMYKcmyk(22.9%, 59.8%, 0%, 29.8%)
CIE-LABlab(43.20, 46.77, -45.91)
CIE-LCHlch(43.20, 65.54, 315.54°)
OKLaboklab(53.04% 0.1096 -0.1291)
OKLCHoklch(53.04% 0.169 310.3)
XYZxyz(20.9337, 13.2931, 44.1021)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48B3 #71B348
analogous
#5548B3 #8A48B3 #B348A7
triadic
#8A48B3 #B38A48 #48B38A
tetradic
#8A48B3 #B35548 #71B348 #48A7B3
square
#8A48B3 #B35548 #71B348 #48A7B3
split-complementary
#8A48B3 #A7B348 #48B355
monochromatic
#47255C #683687 #8A48B3 #A672C6 #C29ED8

Accessibility & contrast

On white

5.74
#8A48B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A48B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48B3
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48B3#FFFFFF#000000##FFFFFF
##8A48B31.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2063B6
Deuteranopia (green-blind)
#3D67B0
Tritanopia (blue-blind)
#855C77
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a48b3;
/* rgb */ color: rgb(138, 72, 179);
/* oklch */ color: oklch(53.0% 0.169 310.3);
Tailwind
colors: {
  custom: {
    50: '#af7eca',
    500: '#8a48b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a48b3;
$custom-light: #af7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48b3",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 179
  },
  "hsl": {
    "h": 277.009,
    "s": 42.629,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53035,
    "c": 0.1694,
    "h": 310.3
  },
  "luminance": 0.13293
}

Semantic roles & 50–950 ramp

primary
#8A48B3
secondary
#A6C492
accent
#D25585
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A48B3

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

Preview Lab → · Contrast checker → · Palette generator →

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