#8A48AF#8A48AF

#8A48AF is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.165 H 311.6°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A48AF
RGBrgb(138, 72, 175)
HSLhsl(278, 42%, 48%)
HSVhsv(278, 59%, 69%)
CMYKcmyk(21.1%, 58.9%, 0%, 31.4%)
CIE-LABlab(42.96, 45.87, -43.93)
CIE-LCHlch(42.96, 63.51, 316.24°)
OKLaboklab(52.79% 0.1096 -0.1233)
OKLCHoklch(52.79% 0.165 311.6)
XYZxyz(20.5351, 13.1336, 42.0024)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48AF #6DAF48
analogous
#5748AF #8A48AF #AF48A0
triadic
#8A48AF #AF8A48 #48AF8A
tetradic
#8A48AF #AF5748 #6DAF48 #48A0AF
square
#8A48AF #AF5748 #6DAF48 #48A0AF
split-complementary
#8A48AF #A0AF48 #48AF57
monochromatic
#462458 #683684 #8A48AF #A670C4 #C19BD6

Accessibility & contrast

On white

5.79
#8A48AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8A48AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48AF
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48AF#FFFFFF#000000##FFFFFF
##8A48AF1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B2
Deuteranopia (green-blind)
#4067AC
Tritanopia (blue-blind)
#865B75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a48af;
/* rgb */ color: rgb(138, 72, 175);
/* oklch */ color: oklch(52.8% 0.165 311.6);
Tailwind
colors: {
  custom: {
    50: '#af7ec7',
    500: '#8a48af',
    950: '#000000',
  },
}
SCSS
$custom: #8a48af;
$custom-light: #af7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48af",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 278.447,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52785,
    "c": 0.16499,
    "h": 311.6
  },
  "luminance": 0.13133
}

Semantic roles & 50–950 ramp

primary
#8A48AF
secondary
#A2C290
accent
#D25683
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A48AF

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

Preview Lab → · Contrast checker → · Palette generator →

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