#8E45BA#8E45BA

#8E45BA is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.6% C 0.183 H 310.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8E45BA
RGBrgb(142, 69, 186)
HSLhsl(277, 46%, 50%)
HSVhsv(277, 63%, 73%)
CMYKcmyk(23.7%, 62.9%, 0%, 27.1%)
CIE-LABlab(43.58, 50.84, -49.37)
CIE-LCHlch(43.58, 70.87, 315.84°)
OKLaboklab(53.56% 0.1185 -0.1391)
OKLCHoklch(53.56% 0.183 310.4)
XYZxyz(22.1447, 13.5527, 47.8942)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45BA #71BA45
analogous
#5445BA #8E45BA #BA45AB
triadic
#8E45BA #BA8E45 #45BA8E
tetradic
#8E45BA #BA5445 #71BA45 #45ABBA
square
#8E45BA #BA5445 #71BA45 #45ABBA
split-complementary
#8E45BA #ABBA45 #45BA54
monochromatic
#4A2461 #6C348D #8E45BA #A972CB #C49EDB

Accessibility & contrast

On white

5.66
#8E45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8E45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45BA
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45BA#FFFFFF#000000##FFFFFF
##8E45BA1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BE
Deuteranopia (green-blind)
#3768B7
Tritanopia (blue-blind)
#885C79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8e45ba;
/* rgb */ color: rgb(142, 69, 186);
/* oklch */ color: oklch(53.6% 0.183 310.4);
Tailwind
colors: {
  custom: {
    50: '#b27dcf',
    500: '#8e45ba',
    950: '#000000',
  },
}
SCSS
$custom: #8e45ba;
$custom-light: #b27dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45ba",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 277.436,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.53561,
    "c": 0.18274,
    "h": 310.4
  },
  "luminance": 0.13552
}

Semantic roles & 50–950 ramp

primary
#8E45BA
secondary
#A7C893
accent
#D65284
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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