#8A48BB#8A48BB

#8A48BB is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.5% C 0.178 H 307.9°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A48BB
RGBrgb(138, 72, 187)
HSLhsl(274, 46%, 51%)
HSVhsv(274, 61%, 73%)
CMYKcmyk(26.2%, 61.5%, 0%, 26.7%)
CIE-LABlab(43.69, 48.61, -49.81)
CIE-LCHlch(43.69, 69.60, 314.30°)
OKLaboklab(53.55% 0.1096 -0.1406)
OKLCHoklch(53.55% 0.178 307.9)
XYZxyz(21.7664, 13.6262, 48.4875)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48BB #79BB48
analogous
#5048BB #8A48BB #BB48B2
triadic
#8A48BB #BB8A48 #48BB8A
tetradic
#8A48BB #BB5048 #79BB48 #48B2BB
square
#8A48BB #BB5048 #79BB48 #48B2BB
split-complementary
#8A48BB #B2BB48 #48BB50
monochromatic
#492564 #6A3690 #8A48BB #A775CC #C3A1DC

Accessibility & contrast

On white

5.64
#8A48BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8A48BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48BB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48BB#FFFFFF#000000##FFFFFF
##8A48BB1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1065BF
Deuteranopia (green-blind)
#3568B8
Tritanopia (blue-blind)
#835F7B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a48bb;
/* rgb */ color: rgb(138, 72, 187);
/* oklch */ color: oklch(53.5% 0.178 307.9);
Tailwind
colors: {
  custom: {
    50: '#b07ed0',
    500: '#8a48bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a48bb;
$custom-light: #b07ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48bb",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 274.435,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53549,
    "c": 0.17823,
    "h": 307.9
  },
  "luminance": 0.13626
}

Semantic roles & 50–950 ramp

primary
#8A48BB
secondary
#ACC996
accent
#D5528A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A48BB

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

Preview Lab → · Contrast checker → · Palette generator →

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