#8C48DB#8C48DB

#8C48DB is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.214 H 300.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8C48DB
RGBrgb(140, 72, 219)
HSLhsl(268, 67%, 57%)
HSVhsv(268, 67%, 86%)
CMYKcmyk(36.1%, 67.1%, 0%, 14.1%)
CIE-LABlab(46.08, 56.66, -64.43)
CIE-LCHlch(46.08, 85.79, 311.33°)
OKLaboklab(56% 0.1097 -0.1834)
OKLCHoklch(56% 0.214 300.9)
XYZxyz(25.9157, 15.3245, 68.5967)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C48DB #97DB48
analogous
#484EDB #8C48DB #D548DB
triadic
#8C48DB #DB8C48 #48DB8C
tetradic
#8C48DB #DB484E #97DB48 #48DBD5
square
#8C48DB #DB484E #97DB48 #48DBD5
split-complementary
#8C48DB #DBD548 #4EDB48
monochromatic
#501C8D #6D26C0 #8C48DB #AC7BE5 #CCAEEF

Accessibility & contrast

On white

5.17
#8C48DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8C48DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C48DB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C48DB#FFFFFF#000000##FFFFFF
##8C48DB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#7B6A8C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8c48db;
/* rgb */ color: rgb(140, 72, 219);
/* oklch */ color: oklch(56.0% 0.214 300.9);
Tailwind
colors: {
  custom: {
    50: '#b380e7',
    500: '#8c48db',
    950: '#000000',
  },
}
SCSS
$custom: #8c48db;
$custom-light: #b380e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c48db",
  "rgb": {
    "r": 140,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 267.755,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56002,
    "c": 0.21373,
    "h": 300.9
  },
  "luminance": 0.15325
}

Semantic roles & 50–950 ramp

primary
#8C48DB
secondary
#C2DDA2
accent
#EA3E9A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C48DB

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

Preview Lab → · Contrast checker → · Palette generator →

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