#8A48BF#8A48BF

#8A48BF is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.8% C 0.183 H 306.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A48BF
RGBrgb(138, 72, 191)
HSLhsl(273, 48%, 52%)
HSVhsv(273, 62%, 75%)
CMYKcmyk(27.7%, 62.3%, 0%, 25.1%)
CIE-LABlab(43.94, 49.54, -51.74)
CIE-LCHlch(43.94, 71.64, 313.76°)
OKLaboklab(53.81% 0.1094 -0.1462)
OKLCHoklch(53.81% 0.183 306.8)
XYZxyz(22.2006, 13.7998, 50.7742)
Luminance0.1380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48BF #7DBF48
analogous
#4F48BF #8A48BF #BF48B9
triadic
#8A48BF #BF8A48 #48BF8A
tetradic
#8A48BF #BF4F48 #7DBF48 #48B9BF
square
#8A48BF #BF4F48 #7DBF48 #48B9BF
split-complementary
#8A48BF #B9BF48 #48BF4F
monochromatic
#4A2468 #6A3496 #8A48BF #A775CF #C4A3DF

Accessibility & contrast

On white

5.59
#8A48BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A48BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48BF
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48BF#FFFFFF#000000##FFFFFF
##8A48BF1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0166C3
Deuteranopia (green-blind)
#3168BC
Tritanopia (blue-blind)
#81607D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a48bf;
/* rgb */ color: rgb(138, 72, 191);
/* oklch */ color: oklch(53.8% 0.183 306.8);
Tailwind
colors: {
  custom: {
    50: '#b07fd3',
    500: '#8a48bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a48bf;
$custom-light: #b07fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48bf",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 273.277,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53813,
    "c": 0.18265,
    "h": 306.8
  },
  "luminance": 0.138
}

Semantic roles & 50–950 ramp

primary
#8A48BF
secondary
#AFCC97
accent
#D8508C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A48BF

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

Preview Lab → · Contrast checker → · Palette generator →

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