#8A48BC#8A48BC

#8A48BC is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.179 H 307.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A48BC
RGBrgb(138, 72, 188)
HSLhsl(274, 46%, 51%)
HSVhsv(274, 62%, 74%)
CMYKcmyk(26.6%, 61.7%, 0%, 26.3%)
CIE-LABlab(43.75, 48.84, -50.30)
CIE-LCHlch(43.75, 70.11, 314.16°)
OKLaboklab(53.62% 0.1095 -0.142)
OKLCHoklch(53.62% 0.179 307.6)
XYZxyz(21.8738, 13.6691, 49.0533)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48BC #7ABC48
analogous
#5048BC #8A48BC #BC48B4
triadic
#8A48BC #BC8A48 #48BC8A
tetradic
#8A48BC #BC5048 #7ABC48 #48B4BC
square
#8A48BC #BC5048 #7ABC48 #48B4BC
split-complementary
#8A48BC #B4BC48 #48BC50
monochromatic
#492565 #6A3592 #8A48BC #A775CC #C3A2DD

Accessibility & contrast

On white

5.62
#8A48BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A48BC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48BC#FFFFFF#000000##FFFFFF
##8A48BC1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D65C0
Deuteranopia (green-blind)
#3468B9
Tritanopia (blue-blind)
#825F7B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a48bc;
/* rgb */ color: rgb(138, 72, 188);
/* oklch */ color: oklch(53.6% 0.179 307.6);
Tailwind
colors: {
  custom: {
    50: '#b07ed1',
    500: '#8a48bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a48bc;
$custom-light: #b07ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48bc",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 274.138,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53615,
    "c": 0.17934,
    "h": 307.6
  },
  "luminance": 0.13669
}

Semantic roles & 50–950 ramp

primary
#8A48BC
secondary
#ACCA96
accent
#D6528B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A48BC

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

Preview Lab → · Contrast checker → · Palette generator →

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