#8C45D2#8C45D2

#8C45D2 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.0% C 0.208 H 303.3°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8C45D2
RGBrgb(140, 69, 210)
HSLhsl(270, 61%, 55%)
HSVhsv(270, 67%, 82%)
CMYKcmyk(33.3%, 67.1%, 0%, 17.6%)
CIE-LABlab(44.92, 55.94, -61.15)
CIE-LCHlch(44.92, 82.87, 312.45°)
OKLaboklab(54.97% 0.114 -0.1738)
OKLCHoklch(54.97% 0.208 303.3)
XYZxyz(24.5735, 14.4849, 62.4615)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C45D2 #8BD245
analogous
#4645D2 #8C45D2 #D245D1
triadic
#8C45D2 #D28C45 #45D28C
tetradic
#8C45D2 #D24645 #8BD245 #45D1D2
square
#8C45D2 #D24645 #8BD245 #45D1D2
split-complementary
#8C45D2 #D1D245 #45D246
monochromatic
#4F1F7E #6D2AAF #8C45D2 #AA76DE #C9A8EA

Accessibility & contrast

On white

5.39
#8C45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8C45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C45D2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C45D2#FFFFFF#000000##FFFFFF
##8C45D21.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#026ACF
Tritanopia (blue-blind)
#7E6586
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8c45d2;
/* rgb */ color: rgb(140, 69, 210);
/* oklch */ color: oklch(55.0% 0.208 303.3);
Tailwind
colors: {
  custom: {
    50: '#b37ee1',
    500: '#8c45d2',
    950: '#000000',
  },
}
SCSS
$custom: #8c45d2;
$custom-light: #b37ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c45d2",
  "rgb": {
    "r": 140,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 270.213,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54974,
    "c": 0.20782,
    "h": 303.3
  },
  "luminance": 0.14485
}

Semantic roles & 50–950 ramp

primary
#8C45D2
secondary
#B9D79C
accent
#E44493
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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