#8A45B7#8A45B7

#8A45B7 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.178 H 309.5°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A45B7
RGBrgb(138, 69, 183)
HSLhsl(276, 45%, 49%)
HSVhsv(276, 62%, 72%)
CMYKcmyk(24.6%, 62.3%, 0%, 28.2%)
CIE-LABlab(42.88, 49.21, -48.77)
CIE-LCHlch(42.88, 69.28, 315.26°)
OKLaboklab(52.88% 0.1134 -0.1375)
OKLCHoklch(52.88% 0.178 309.5)
XYZxyz(21.1549, 13.0788, 46.2006)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45B7 #72B745
analogous
#5145B7 #8A45B7 #B745AB
triadic
#8A45B7 #B78A45 #45B78A
tetradic
#8A45B7 #B75145 #72B745 #45ABB7
square
#8A45B7 #B75145 #72B745 #45ABB7
split-complementary
#8A45B7 #ABB745 #45B751
monochromatic
#47235E #68348B #8A45B7 #A670C9 #C29DDA

Accessibility & contrast

On white

5.81
#8A45B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A45B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45B7
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45B7#FFFFFF#000000##FFFFFF
##8A45B71.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E62BB
Deuteranopia (green-blind)
#3666B4
Tritanopia (blue-blind)
#845B78
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a45b7;
/* rgb */ color: rgb(138, 69, 183);
/* oklch */ color: oklch(52.9% 0.178 309.5);
Tailwind
colors: {
  custom: {
    50: '#af7dcd',
    500: '#8a45b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a45b7;
$custom-light: #af7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45b7",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 276.316,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52881,
    "c": 0.17821,
    "h": 309.5
  },
  "luminance": 0.13078
}

Semantic roles & 50–950 ramp

primary
#8A45B7
secondary
#A6C692
accent
#D55386
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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