#8A48C9#8A48C9

#8A48C9 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.5% C 0.194 H 304.2°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8A48C9
RGBrgb(138, 72, 201)
HSLhsl(271, 54%, 54%)
HSVhsv(271, 64%, 79%)
CMYKcmyk(31.3%, 64.2%, 0%, 21.2%)
CIE-LABlab(44.60, 51.91, -56.49)
CIE-LCHlch(44.60, 76.72, 312.58°)
OKLaboklab(54.49% 0.1089 -0.1602)
OKLCHoklch(54.49% 0.194 304.2)
XYZxyz(23.3388, 14.2551, 56.7690)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48C9 #87C948
analogous
#4948C9 #8A48C9 #C948C7
triadic
#8A48C9 #C98A48 #48C98A
tetradic
#8A48C9 #C94948 #87C948 #48C7C9
square
#8A48C9 #C94948 #87C948 #48C7C9
split-complementary
#8A48C9 #C7C948 #48C949
monochromatic
#4C2274 #6B30A4 #8A48C9 #A877D7 #C6A7E5

Accessibility & contrast

On white

5.45
#8A48C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A48C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48C9
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48C9#FFFFFF#000000##FFFFFF
##8A48C91.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CD
Deuteranopia (green-blind)
#2269C6
Tritanopia (blue-blind)
#7E6482
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a48c9;
/* rgb */ color: rgb(138, 72, 201);
/* oklch */ color: oklch(54.5% 0.194 304.2);
Tailwind
colors: {
  custom: {
    50: '#b17fda',
    500: '#8a48c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a48c9;
$custom-light: #b17fda;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48c9",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 201
  },
  "hsl": {
    "h": 270.698,
    "s": 54.43,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54493,
    "c": 0.19368,
    "h": 304.2
  },
  "luminance": 0.14255
}

Semantic roles & 50–950 ramp

primary
#8A48C9
secondary
#B6D29B
accent
#DE4A92
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A48C9

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

Preview Lab → · Contrast checker → · Palette generator →

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