#8A45C5#8A45C5

#8A45C5 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.8% C 0.193 H 305.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A45C5
RGBrgb(138, 69, 197)
HSLhsl(272, 52%, 52%)
HSVhsv(272, 65%, 77%)
CMYKcmyk(29.9%, 65%, 0%, 22.7%)
CIE-LABlab(43.79, 52.45, -55.48)
CIE-LCHlch(43.79, 76.35, 313.39°)
OKLaboklab(53.82% 0.1126 -0.1572)
OKLCHoklch(53.82% 0.193 305.6)
XYZxyz(22.6852, 13.6909, 54.2600)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45C5 #80C545
analogous
#4A45C5 #8A45C5 #C545C0
triadic
#8A45C5 #C58A45 #45C58A
tetradic
#8A45C5 #C54A45 #80C545 #45C0C5
square
#8A45C5 #C54A45 #80C545 #45C0C5
split-complementary
#8A45C5 #C0C545 #45C54A
monochromatic
#4B226D #6B319C #8A45C5 #A774D4 #C5A2E2

Accessibility & contrast

On white

5.62
#8A45C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A45C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45C5
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45C5#FFFFFF#000000##FFFFFF
##8A45C51.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#2468C2
Tritanopia (blue-blind)
#80607F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a45c5;
/* rgb */ color: rgb(138, 69, 197);
/* oklch */ color: oklch(53.8% 0.193 305.6);
Tailwind
colors: {
  custom: {
    50: '#b07dd7',
    500: '#8a45c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a45c5;
$custom-light: #b07dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45c5",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 272.344,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53824,
    "c": 0.19338,
    "h": 305.6
  },
  "luminance": 0.13691
}

Semantic roles & 50–950 ramp

primary
#8A45C5
secondary
#B1CF97
accent
#DC4C8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A45C5

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

Preview Lab → · Contrast checker → · Palette generator →

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