#8045AA#8045AA

#8045AA is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.8% C 0.161 H 308.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8045AA
RGBrgb(128, 69, 170)
HSLhsl(275, 42%, 47%)
HSVhsv(275, 59%, 67%)
CMYKcmyk(24.7%, 59.4%, 0%, 33.3%)
CIE-LABlab(40.81, 43.75, -44.48)
CIE-LCHlch(40.81, 62.39, 314.53°)
OKLaboklab(50.84% 0.1004 -0.1252)
OKLCHoklch(50.84% 0.161 308.7)
XYZxyz(18.2845, 11.7480, 39.3268)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8045AA #6FAA45
analogous
#4E45AA #8045AA #AA45A1
triadic
#8045AA #AA8045 #45AA80
tetradic
#8045AA #AA4E45 #6FAA45 #45A1AA
square
#8045AA #AA4E45 #6FAA45 #45A1AA
split-complementary
#8045AA #A1AA45 #45AA4E
monochromatic
#3E2253 #5F337E #8045AA #9E6AC2 #BA95D4

Accessibility & contrast

On white

6.27
#8045AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8045AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8045AA#FFFFFF#000000##FFFFFF
##8045AA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAD
Deuteranopia (green-blind)
#3761A8
Tritanopia (blue-blind)
#7A5871
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8045aa;
/* rgb */ color: rgb(128, 69, 170);
/* oklch */ color: oklch(50.8% 0.161 308.7);
Tailwind
colors: {
  custom: {
    50: '#a87cc4',
    500: '#8045aa',
    950: '#000000',
  },
}
SCSS
$custom: #8045aa;
$custom-light: #a87cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8045aa",
  "rgb": {
    "r": 128,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 275.05,
    "s": 42.259,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50843,
    "c": 0.16053,
    "h": 308.7
  },
  "luminance": 0.11748
}

Semantic roles & 50–950 ramp

primary
#8045AA
secondary
#A1C08B
accent
#D25689
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #8045AA

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

Preview Lab → · Contrast checker → · Palette generator →

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