#8A45C4#8A45C4

#8A45C4 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.8% C 0.192 H 305.9°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A45C4
RGBrgb(138, 69, 196)
HSLhsl(273, 52%, 52%)
HSVhsv(273, 65%, 77%)
CMYKcmyk(29.6%, 64.8%, 0%, 23.1%)
CIE-LABlab(43.72, 52.22, -55.01)
CIE-LCHlch(43.72, 75.85, 313.51°)
OKLaboklab(53.76% 0.1127 -0.1558)
OKLCHoklch(53.76% 0.192 305.9)
XYZxyz(22.5710, 13.6452, 53.6586)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45C4 #7FC445
analogous
#4A45C4 #8A45C4 #C445BF
triadic
#8A45C4 #C48A45 #45C48A
tetradic
#8A45C4 #C44A45 #7FC445 #45BFC4
square
#8A45C4 #C44A45 #7FC445 #45BFC4
split-complementary
#8A45C4 #BFC445 #45C44A
monochromatic
#4B226C #6A319B #8A45C4 #A773D3 #C4A2E1

Accessibility & contrast

On white

5.63
#8A45C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8A45C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45C4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45C4#FFFFFF#000000##FFFFFF
##8A45C41.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#2568C1
Tritanopia (blue-blind)
#80607E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a45c4;
/* rgb */ color: rgb(138, 69, 196);
/* oklch */ color: oklch(53.8% 0.192 305.9);
Tailwind
colors: {
  custom: {
    50: '#b07dd7',
    500: '#8a45c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a45c4;
$custom-light: #b07dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45c4",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 196
  },
  "hsl": {
    "h": 272.598,
    "s": 51.837,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53755,
    "c": 0.1923,
    "h": 305.9
  },
  "luminance": 0.13645
}

Semantic roles & 50–950 ramp

primary
#8A45C4
secondary
#B0CE97
accent
#DB4D8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A45C4

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

Preview Lab → · Contrast checker → · Palette generator →

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