#8045C5#8045C5

#8045C5 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.7% C 0.191 H 301.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8045C5
RGBrgb(128, 69, 197)
HSLhsl(268, 52%, 52%)
HSVhsv(268, 65%, 77%)
CMYKcmyk(35%, 65%, 0%, 22.7%)
CIE-LABlab(42.58, 50.29, -57.50)
CIE-LCHlch(42.58, 76.39, 311.18°)
OKLaboklab(52.69% 0.0992 -0.1635)
OKLCHoklch(52.69% 0.191 301.2)
XYZxyz(21.1058, 12.8765, 54.1860)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8045C5 #8AC545
analogous
#454AC5 #8045C5 #C045C5
triadic
#8045C5 #C58045 #45C580
tetradic
#8045C5 #C5454A #8AC545 #45C5C0
square
#8045C5 #C5454A #8AC545 #45C5C0
split-complementary
#8045C5 #C5C045 #4AC545
monochromatic
#45226D #62319C #8045C5 #A074D4 #C0A2E2

Accessibility & contrast

On white

5.87
#8045C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8045C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8045C5
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8045C5#FFFFFF#000000##FFFFFF
##8045C51.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#0B64C2
Tritanopia (blue-blind)
#71627F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8045c5;
/* rgb */ color: rgb(128, 69, 197);
/* oklch */ color: oklch(52.7% 0.191 301.2);
Tailwind
colors: {
  custom: {
    50: '#aa7cd7',
    500: '#8045c5',
    950: '#000000',
  },
}
SCSS
$custom: #8045c5;
$custom-light: #aa7cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8045c5",
  "rgb": {
    "r": 128,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 267.656,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52685,
    "c": 0.1912,
    "h": 301.2
  },
  "luminance": 0.12877
}

Semantic roles & 50–950 ramp

primary
#8045C5
secondary
#B5CF97
accent
#DC4C9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #8045C5

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

Preview Lab → · Contrast checker → · Palette generator →

#8045C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva