#8A48E7#8A48E7

#8A48E7 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.7% C 0.226 H 297.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A48E7
RGBrgb(138, 72, 231)
HSLhsl(265, 77%, 59%)
HSVhsv(265, 69%, 91%)
CMYKcmyk(40.3%, 68.8%, 0%, 9.4%)
CIE-LABlab(46.72, 59.22, -70.20)
CIE-LCHlch(46.72, 91.85, 310.15°)
OKLaboklab(56.69% 0.1052 -0.2005)
OKLCHoklch(56.69% 0.226 297.7)
XYZxyz(27.2187, 15.8071, 77.2028)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48E7 #A5E748
analogous
#4855E7 #8A48E7 #DA48E7
triadic
#8A48E7 #E78A48 #48E78A
tetradic
#8A48E7 #E74855 #A5E748 #48E7DA
square
#8A48E7 #E74855 #A5E748 #48E7DA
split-complementary
#8A48E7 #E7DA48 #55E748
monochromatic
#4F15A0 #691CD6 #8A48E7 #AD7EEE #CFB4F5

Accessibility & contrast

On white

5.05
#8A48E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A48E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48E7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48E7#FFFFFF#000000##FFFFFF
##8A48E71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#736F92
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a48e7;
/* rgb */ color: rgb(138, 72, 231);
/* oklch */ color: oklch(56.7% 0.226 297.7);
Tailwind
colors: {
  custom: {
    50: '#b380f0',
    500: '#8a48e7',
    950: '#000000',
  },
}
SCSS
$custom: #8a48e7;
$custom-light: #b380f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48e7",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 231
  },
  "hsl": {
    "h": 264.906,
    "s": 76.812,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56686,
    "c": 0.22642,
    "h": 297.7
  },
  "luminance": 0.15808
}

Semantic roles & 50–950 ramp

primary
#8A48E7
secondary
#CBE4A6
accent
#F334A4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8A48E7

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

Preview Lab → · Contrast checker → · Palette generator →

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