#8C45CD#8C45CD

#8C45CD is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.6% C 0.202 H 304.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8C45CD
RGBrgb(140, 69, 205)
HSLhsl(271, 58%, 54%)
HSVhsv(271, 66%, 80%)
CMYKcmyk(31.7%, 66.3%, 0%, 19.6%)
CIE-LABlab(44.57, 54.76, -58.83)
CIE-LCHlch(44.57, 80.37, 312.95°)
OKLaboklab(54.62% 0.1145 -0.167)
OKLCHoklch(54.62% 0.202 304.4)
XYZxyz(23.9603, 14.2396, 59.2320)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C45CD #86CD45
analogous
#4845CD #8C45CD #CD45CA
triadic
#8C45CD #CD8C45 #45CD8C
tetradic
#8C45CD #CD4845 #86CD45 #45CACD
square
#8C45CD #CD4845 #86CD45 #45CACD
split-complementary
#8C45CD #CACD45 #45CD48
monochromatic
#4E2077 #6D2DA8 #8C45CD #AA75DA #C8A5E7

Accessibility & contrast

On white

5.46
#8C45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8C45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C45CD
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C45CD#FFFFFF#000000##FFFFFF
##8C45CD1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#1769CA
Tritanopia (blue-blind)
#806383
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8c45cd;
/* rgb */ color: rgb(140, 69, 205);
/* oklch */ color: oklch(54.6% 0.202 304.4);
Tailwind
colors: {
  custom: {
    50: '#b27ddd',
    500: '#8c45cd',
    950: '#000000',
  },
}
SCSS
$custom: #8c45cd;
$custom-light: #b27ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c45cd",
  "rgb": {
    "r": 140,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 271.324,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54617,
    "c": 0.20247,
    "h": 304.4
  },
  "luminance": 0.14239
}

Semantic roles & 50–950 ramp

primary
#8C45CD
secondary
#B6D49A
accent
#E14791
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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