#8A45AE#8A45AE

#8A45AE is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.3% C 0.168 H 312.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A45AE
RGBrgb(138, 69, 174)
HSLhsl(279, 43%, 48%)
HSVhsv(279, 60%, 68%)
CMYKcmyk(20.7%, 60.3%, 0%, 31.8%)
CIE-LABlab(42.33, 47.19, -44.35)
CIE-LCHlch(42.33, 64.76, 316.78°)
OKLaboklab(52.31% 0.1135 -0.1246)
OKLCHoklch(52.31% 0.168 312.3)
XYZxyz(20.2480, 12.7160, 41.4240)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45AE #69AE45
analogous
#5645AE #8A45AE #AE459D
triadic
#8A45AE #AE8A45 #45AE8A
tetradic
#8A45AE #AE5645 #69AE45 #459DAE
square
#8A45AE #AE5645 #69AE45 #459DAE
split-complementary
#8A45AE #9DAE45 #45AE56
monochromatic
#442256 #673482 #8A45AE #A66CC5 #C197D6

Accessibility & contrast

On white

5.93
#8A45AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A45AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45AE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45AE#FFFFFF#000000##FFFFFF
##8A45AE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2060B1
Deuteranopia (green-blind)
#3E65AB
Tritanopia (blue-blind)
#865873
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a45ae;
/* rgb */ color: rgb(138, 69, 174);
/* oklch */ color: oklch(52.3% 0.168 312.3);
Tailwind
colors: {
  custom: {
    50: '#af7cc7',
    500: '#8a45ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a45ae;
$custom-light: #af7cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45ae",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 279.429,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52305,
    "c": 0.16848,
    "h": 312.3
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#8A45AE
secondary
#9FC28D
accent
#D35580
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45AE

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

Preview Lab → · Contrast checker → · Palette generator →

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