#8A45C9#8A45C9

#8A45C9 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.1% C 0.198 H 304.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8A45C9
RGBrgb(138, 69, 201)
HSLhsl(271, 55%, 53%)
HSVhsv(271, 66%, 79%)
CMYKcmyk(31.3%, 65.7%, 0%, 21.2%)
CIE-LABlab(44.06, 53.39, -57.37)
CIE-LCHlch(44.06, 78.37, 312.94°)
OKLaboklab(54.1% 0.1122 -0.1627)
OKLCHoklch(54.1% 0.198 304.6)
XYZxyz(23.1496, 13.8767, 56.7059)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45C9 #84C945
analogous
#4845C9 #8A45C9 #C945C6
triadic
#8A45C9 #C98A45 #45C98A
tetradic
#8A45C9 #C94845 #84C945 #45C6C9
square
#8A45C9 #C94845 #84C945 #45C6C9
split-complementary
#8A45C9 #C6C945 #45C948
monochromatic
#4C2172 #6B2FA2 #8A45C9 #A874D7 #C6A4E5

Accessibility & contrast

On white

5.56
#8A45C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A45C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45C9
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45C9#FFFFFF#000000##FFFFFF
##8A45C91.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CD
Deuteranopia (green-blind)
#1C68C6
Tritanopia (blue-blind)
#7E6281
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a45c9;
/* rgb */ color: rgb(138, 69, 201);
/* oklch */ color: oklch(54.1% 0.198 304.6);
Tailwind
colors: {
  custom: {
    50: '#b17dda',
    500: '#8a45c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a45c9;
$custom-light: #b17dda;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45c9",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 271.364,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54103,
    "c": 0.1977,
    "h": 304.6
  },
  "luminance": 0.13877
}

Semantic roles & 50–950 ramp

primary
#8A45C9
secondary
#B4D198
accent
#DE4991
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45C9

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

Preview Lab → · Contrast checker → · Palette generator →

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