#8D45C5#8D45C5

#8D45C5 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.2% C 0.194 H 306.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8D45C5
RGBrgb(141, 69, 197)
HSLhsl(274, 52%, 52%)
HSVhsv(274, 65%, 77%)
CMYKcmyk(28.4%, 65%, 0%, 22.7%)
CIE-LABlab(44.16, 53.11, -54.86)
CIE-LCHlch(44.16, 76.36, 314.07°)
OKLaboklab(54.18% 0.1166 -0.1553)
OKLCHoklch(54.18% 0.194 306.9)
XYZxyz(23.1885, 13.9504, 54.2836)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D45C5 #7DC545
analogous
#4D45C5 #8D45C5 #C545BD
triadic
#8D45C5 #C58D45 #45C58D
tetradic
#8D45C5 #C54D45 #7DC545 #45BDC5
square
#8D45C5 #C54D45 #7DC545 #45BDC5
split-complementary
#8D45C5 #BDC545 #45C54D
monochromatic
#4D226D #6D319C #8D45C5 #AA74D4 #C6A2E2

Accessibility & contrast

On white

5.54
#8D45C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8D45C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D45C5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D45C5#FFFFFF#000000##FFFFFF
##8D45C51.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#2969C2
Tritanopia (blue-blind)
#84607F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d45c5;
/* rgb */ color: rgb(141, 69, 197);
/* oklch */ color: oklch(54.2% 0.194 306.9);
Tailwind
colors: {
  custom: {
    50: '#b27dd7',
    500: '#8d45c5',
    950: '#000000',
  },
}
SCSS
$custom: #8d45c5;
$custom-light: #b27dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d45c5",
  "rgb": {
    "r": 141,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 273.75,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54176,
    "c": 0.19416,
    "h": 306.9
  },
  "luminance": 0.1395
}

Semantic roles & 50–950 ramp

primary
#8D45C5
secondary
#AFCF97
accent
#DC4C8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8D45C5

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

Preview Lab → · Contrast checker → · Palette generator →

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