#8A45AF#8A45AF

#8A45AF is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.4% C 0.170 H 312.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A45AF
RGBrgb(138, 69, 175)
HSLhsl(279, 43%, 48%)
HSVhsv(279, 61%, 69%)
CMYKcmyk(21.1%, 60.6%, 0%, 31.4%)
CIE-LABlab(42.39, 47.41, -44.84)
CIE-LCHlch(42.39, 65.26, 316.59°)
OKLaboklab(52.37% 0.1135 -0.126)
OKLCHoklch(52.37% 0.17 312)
XYZxyz(20.3458, 12.7552, 41.9393)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45AF #6AAF45
analogous
#5545AF #8A45AF #AF459F
triadic
#8A45AF #AF8A45 #45AF8A
tetradic
#8A45AF #AF5545 #6AAF45 #459FAF
square
#8A45AF #AF5545 #6AAF45 #459FAF
split-complementary
#8A45AF #9FAF45 #45AF55
monochromatic
#452257 #673483 #8A45AF #A66CC5 #C198D6

Accessibility & contrast

On white

5.91
#8A45AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A45AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45AF
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45AF#FFFFFF#000000##FFFFFF
##8A45AF1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F61B2
Deuteranopia (green-blind)
#3D66AC
Tritanopia (blue-blind)
#865973
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a45af;
/* rgb */ color: rgb(138, 69, 175);
/* oklch */ color: oklch(52.4% 0.170 312.0);
Tailwind
colors: {
  custom: {
    50: '#af7cc7',
    500: '#8a45af',
    950: '#000000',
  },
}
SCSS
$custom: #8a45af;
$custom-light: #af7cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45af",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 279.057,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.52368,
    "c": 0.16955,
    "h": 312
  },
  "luminance": 0.12755
}

Semantic roles & 50–950 ramp

primary
#8A45AF
secondary
#A0C28D
accent
#D35581
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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