#8C48EB#8C48EB

#8C48EB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.2% C 0.231 H 297.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8C48EB
RGBrgb(140, 72, 235)
HSLhsl(265, 80%, 60%)
HSVhsv(265, 69%, 92%)
CMYKcmyk(40.4%, 69.4%, 0%, 7.8%)
CIE-LABlab(47.25, 60.57, -71.60)
CIE-LCHlch(47.25, 93.78, 310.23°)
OKLaboklab(57.21% 0.1073 -0.2045)
OKLCHoklch(57.21% 0.231 297.7)
XYZxyz(28.1241, 16.2079, 80.2278)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C48EB #A7EB48
analogous
#4855EB #8C48EB #DE48EB
triadic
#8C48EB #EB8C48 #48EB8C
tetradic
#8C48EB #EB4855 #A7EB48 #48EBDE
square
#8C48EB #EB4855 #A7EB48 #48EBDE
split-complementary
#8C48EB #EBDE48 #55EB48
monochromatic
#5012A6 #6B18DE #8C48EB #AF7FF1 #D1B6F7

Accessibility & contrast

On white

4.95
#8C48EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8C48EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C48EB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C48EB#FFFFFF#000000##FFFFFF
##8C48EB1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#747095
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8c48eb;
/* rgb */ color: rgb(140, 72, 235);
/* oklch */ color: oklch(57.2% 0.231 297.7);
Tailwind
colors: {
  custom: {
    50: '#b580f2',
    500: '#8c48eb',
    950: '#000000',
  },
}
SCSS
$custom: #8c48eb;
$custom-light: #b580f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c48eb",
  "rgb": {
    "r": 140,
    "g": 72,
    "b": 235
  },
  "hsl": {
    "h": 265.031,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57205,
    "c": 0.23095,
    "h": 297.7
  },
  "luminance": 0.16208
}

Semantic roles & 50–950 ramp

primary
#8C48EB
secondary
#CDE7A8
accent
#DD0984
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8C48EB

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

Preview Lab → · Contrast checker → · Palette generator →

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