#8C48E2#8C48E2

#8C48E2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.5% C 0.221 H 299.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8C48E2
RGBrgb(140, 72, 226)
HSLhsl(266, 73%, 58%)
HSVhsv(266, 68%, 89%)
CMYKcmyk(38.1%, 68.1%, 0%, 11.4%)
CIE-LABlab(46.58, 58.36, -67.59)
CIE-LCHlch(46.58, 89.30, 310.81°)
OKLaboklab(56.52% 0.1087 -0.1927)
OKLCHoklch(56.52% 0.221 299.4)
XYZxyz(26.8566, 15.7009, 73.5524)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C48E2 #9EE248
analogous
#4851E2 #8C48E2 #D948E2
triadic
#8C48E2 #E28C48 #48E28C
tetradic
#8C48E2 #E24851 #9EE248 #48E2D9
square
#8C48E2 #E24851 #9EE248 #48E2D9
split-complementary
#8C48E2 #E2D948 #51E248
monochromatic
#501898 #6C20CC #8C48E2 #AD7DEA #CEB2F3

Accessibility & contrast

On white

5.07
#8C48E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8C48E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C48E2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C48E2#FFFFFF#000000##FFFFFF
##8C48E21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#786D90
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8c48e2;
/* rgb */ color: rgb(140, 72, 226);
/* oklch */ color: oklch(56.5% 0.221 299.4);
Tailwind
colors: {
  custom: {
    50: '#b480ec',
    500: '#8c48e2',
    950: '#000000',
  },
}
SCSS
$custom: #8c48e2;
$custom-light: #b480ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8c48e2",
  "rgb": {
    "r": 140,
    "g": 72,
    "b": 226
  },
  "hsl": {
    "h": 266.494,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56521,
    "c": 0.22129,
    "h": 299.4
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#8C48E2
secondary
#C6E1A4
accent
#EF389F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C48E2

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

Preview Lab → · Contrast checker → · Palette generator →

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