#8A48E1#8A48E1

#8A48E1 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.2% C 0.220 H 298.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A48E1
RGBrgb(138, 72, 225)
HSLhsl(266, 72%, 58%)
HSVhsv(266, 68%, 88%)
CMYKcmyk(38.7%, 68%, 0%, 11.8%)
CIE-LABlab(46.28, 57.74, -67.53)
CIE-LCHlch(46.28, 88.84, 310.53°)
OKLaboklab(56.23% 0.1061 -0.1926)
OKLCHoklch(56.23% 0.22 298.9)
XYZxyz(26.3858, 15.4739, 72.8162)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48E1 #9FE148
analogous
#4852E1 #8A48E1 #D648E1
triadic
#8A48E1 #E18A48 #48E18A
tetradic
#8A48E1 #E14852 #9FE148 #48E1D6
square
#8A48E1 #E14852 #9FE148 #48E1D6
split-complementary
#8A48E1 #E1D648 #52E148
monochromatic
#4F1996 #6A21CB #8A48E1 #AC7DEA #CDB1F2

Accessibility & contrast

On white

5.13
#8A48E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A48E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48E1
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48E1#FFFFFF#000000##FFFFFF
##8A48E11.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE6
Deuteranopia (green-blind)
#006CDE
Tritanopia (blue-blind)
#756D8F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a48e1;
/* rgb */ color: rgb(138, 72, 225);
/* oklch */ color: oklch(56.2% 0.220 298.9);
Tailwind
colors: {
  custom: {
    50: '#b280eb',
    500: '#8a48e1',
    950: '#000000',
  },
}
SCSS
$custom: #8a48e1;
$custom-light: #b280eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48e1",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 225
  },
  "hsl": {
    "h": 265.882,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.5623,
    "c": 0.21993,
    "h": 298.9
  },
  "luminance": 0.15474
}

Semantic roles & 50–950 ramp

primary
#8A48E1
secondary
#C7E1A4
accent
#EF39A0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A48E1

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

Preview Lab → · Contrast checker → · Palette generator →

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