#8C45CB#8C45CB

#8C45CB is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.5% C 0.200 H 304.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8C45CB
RGBrgb(140, 69, 203)
HSLhsl(272, 56%, 53%)
HSVhsv(272, 66%, 80%)
CMYKcmyk(31%, 66%, 0%, 20.4%)
CIE-LABlab(44.44, 54.29, -57.89)
CIE-LCHlch(44.44, 79.36, 313.16°)
OKLaboklab(54.47% 0.1147 -0.1642)
OKLCHoklch(54.47% 0.2 304.9)
XYZxyz(23.7204, 14.1436, 57.9687)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C45CB #84CB45
analogous
#4945CB #8C45CB #CB45C7
triadic
#8C45CB #CB8C45 #45CB8C
tetradic
#8C45CB #CB4945 #84CB45 #45C7CB
square
#8C45CB #CB4945 #84CB45 #45C7CB
split-complementary
#8C45CB #C7CB45 #45CB49
monochromatic
#4D2175 #6D2EA5 #8C45CB #AA75D8 #C7A5E6

Accessibility & contrast

On white

5.49
#8C45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8C45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C45CB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C45CB#FFFFFF#000000##FFFFFF
##8C45CB1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#1C69C8
Tritanopia (blue-blind)
#816282
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8c45cb;
/* rgb */ color: rgb(140, 69, 203);
/* oklch */ color: oklch(54.5% 0.200 304.9);
Tailwind
colors: {
  custom: {
    50: '#b27ddc',
    500: '#8c45cb',
    950: '#000000',
  },
}
SCSS
$custom: #8c45cb;
$custom-light: #b27ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c45cb",
  "rgb": {
    "r": 140,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 271.791,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54475,
    "c": 0.20032,
    "h": 304.9
  },
  "luminance": 0.14143
}

Semantic roles & 50–950 ramp

primary
#8C45CB
secondary
#B4D399
accent
#E0488F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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