#8A48BE#8A48BE

#8A48BE is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.7% C 0.182 H 307.1°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8A48BE
RGBrgb(138, 72, 190)
HSLhsl(274, 48%, 51%)
HSVhsv(274, 62%, 75%)
CMYKcmyk(27.4%, 62.1%, 0%, 25.5%)
CIE-LABlab(43.88, 49.31, -51.26)
CIE-LCHlch(43.88, 71.13, 313.89°)
OKLaboklab(53.75% 0.1095 -0.1448)
OKLCHoklch(53.75% 0.182 307.1)
XYZxyz(22.0909, 13.7560, 50.1966)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48BE #7CBE48
analogous
#4F48BE #8A48BE #BE48B7
triadic
#8A48BE #BE8A48 #48BE8A
tetradic
#8A48BE #BE4F48 #7CBE48 #48B7BE
square
#8A48BE #BE4F48 #7CBE48 #48B7BE
split-complementary
#8A48BE #B7BE48 #48BE4F
monochromatic
#4A2567 #6A3594 #8A48BE #A775CE #C4A2DE

Accessibility & contrast

On white

5.60
#8A48BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8A48BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48BE
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48BE#FFFFFF#000000##FFFFFF
##8A48BE1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0565C2
Deuteranopia (green-blind)
#3268BB
Tritanopia (blue-blind)
#82607C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a48be;
/* rgb */ color: rgb(138, 72, 190);
/* oklch */ color: oklch(53.7% 0.182 307.1);
Tailwind
colors: {
  custom: {
    50: '#b07fd2',
    500: '#8a48be',
    950: '#000000',
  },
}
SCSS
$custom: #8a48be;
$custom-light: #b07fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48be",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 190
  },
  "hsl": {
    "h": 273.559,
    "s": 47.581,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53747,
    "c": 0.18155,
    "h": 307.1
  },
  "luminance": 0.13756
}

Semantic roles & 50–950 ramp

primary
#8A48BE
secondary
#AECB97
accent
#D7518C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A48BE

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

Preview Lab → · Contrast checker → · Palette generator →

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