#8A48BD#8A48BD

#8A48BD is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.7% C 0.180 H 307.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A48BD
RGBrgb(138, 72, 189)
HSLhsl(274, 47%, 51%)
HSVhsv(274, 62%, 74%)
CMYKcmyk(27%, 61.9%, 0%, 25.9%)
CIE-LABlab(43.82, 49.08, -50.78)
CIE-LCHlch(43.82, 70.62, 314.02°)
OKLaboklab(53.68% 0.1095 -0.1434)
OKLCHoklch(53.68% 0.18 307.4)
XYZxyz(21.9820, 13.7124, 49.6230)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48BD #7BBD48
analogous
#4F48BD #8A48BD #BD48B5
triadic
#8A48BD #BD8A48 #48BD8A
tetradic
#8A48BD #BD4F48 #7BBD48 #48B5BD
square
#8A48BD #BD4F48 #7BBD48 #48B5BD
split-complementary
#8A48BD #B5BD48 #48BD4F
monochromatic
#492566 #6A3593 #8A48BD #A775CD #C4A2DD

Accessibility & contrast

On white

5.61
#8A48BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A48BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48BD
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48BD#FFFFFF#000000##FFFFFF
##8A48BD1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0965C1
Deuteranopia (green-blind)
#3368BA
Tritanopia (blue-blind)
#825F7C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a48bd;
/* rgb */ color: rgb(138, 72, 189);
/* oklch */ color: oklch(53.7% 0.180 307.4);
Tailwind
colors: {
  custom: {
    50: '#b07fd1',
    500: '#8a48bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a48bd;
$custom-light: #b07fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48bd",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 189
  },
  "hsl": {
    "h": 273.846,
    "s": 46.988,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53681,
    "c": 0.18043,
    "h": 307.4
  },
  "luminance": 0.13712
}

Semantic roles & 50–950 ramp

primary
#8A48BD
secondary
#ADCA97
accent
#D7518B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A48BD

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

Preview Lab → · Contrast checker → · Palette generator →

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