#8B48EB#8B48EB

#8B48EB is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.1% C 0.231 H 297.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8B48EB
RGBrgb(139, 72, 235)
HSLhsl(265, 80%, 60%)
HSVhsv(265, 69%, 92%)
CMYKcmyk(40.9%, 69.4%, 0%, 7.8%)
CIE-LABlab(47.13, 60.39, -71.79)
CIE-LCHlch(47.13, 93.81, 310.07°)
OKLaboklab(57.1% 0.1059 -0.2051)
OKLCHoklch(57.1% 0.231 297.3)
XYZxyz(27.9563, 16.1214, 80.2200)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B48EB #A8EB48
analogous
#4856EB #8B48EB #DD48EB
triadic
#8B48EB #EB8B48 #48EB8B
tetradic
#8B48EB #EB4856 #A8EB48 #48EBDD
square
#8B48EB #EB4856 #A8EB48 #48EBDD
split-complementary
#8B48EB #EBDD48 #56EB48
monochromatic
#4F12A6 #6918DE #8B48EB #AE7FF1 #D1B6F7

Accessibility & contrast

On white

4.97
#8B48EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#8B48EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B48EB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B48EB#FFFFFF#000000##FFFFFF
##8B48EB1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b48eb;
/* rgb */ color: rgb(139, 72, 235);
/* oklch */ color: oklch(57.1% 0.231 297.3);
Tailwind
colors: {
  custom: {
    50: '#b480f2',
    500: '#8b48eb',
    950: '#000000',
  },
}
SCSS
$custom: #8b48eb;
$custom-light: #b480f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b48eb",
  "rgb": {
    "r": 139,
    "g": 72,
    "b": 235
  },
  "hsl": {
    "h": 264.663,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57099,
    "c": 0.23084,
    "h": 297.3
  },
  "luminance": 0.16122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B48EB

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

Preview Lab → · Contrast checker → · Palette generator →

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