#8A45C3#8A45C3

#8A45C3 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.7% C 0.191 H 306.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8A45C3
RGBrgb(138, 69, 195)
HSLhsl(273, 51%, 52%)
HSVhsv(273, 65%, 76%)
CMYKcmyk(29.2%, 64.6%, 0%, 23.5%)
CIE-LABlab(43.65, 51.98, -54.54)
CIE-LCHlch(43.65, 75.34, 313.63°)
OKLaboklab(53.69% 0.1127 -0.1544)
OKLCHoklch(53.69% 0.191 306.1)
XYZxyz(22.4576, 13.5999, 53.0611)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45C3 #7EC345
analogous
#4B45C3 #8A45C3 #C345BD
triadic
#8A45C3 #C38A45 #45C38A
tetradic
#8A45C3 #C34B45 #7EC345 #45BDC3
square
#8A45C3 #C34B45 #7EC345 #45BDC3
split-complementary
#8A45C3 #BDC345 #45C34B
monochromatic
#4A236B #6A3199 #8A45C3 #A773D2 #C4A2E1

Accessibility & contrast

On white

5.65
#8A45C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8A45C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45C3
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45C3#FFFFFF#000000##FFFFFF
##8A45C31.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C7
Deuteranopia (green-blind)
#2768C0
Tritanopia (blue-blind)
#80607E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a45c3;
/* rgb */ color: rgb(138, 69, 195);
/* oklch */ color: oklch(53.7% 0.191 306.1);
Tailwind
colors: {
  custom: {
    50: '#b07dd6',
    500: '#8a45c3',
    950: '#000000',
  },
}
SCSS
$custom: #8a45c3;
$custom-light: #b07dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45c3",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 195
  },
  "hsl": {
    "h": 272.857,
    "s": 51.22,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53686,
    "c": 0.1912,
    "h": 306.1
  },
  "luminance": 0.136
}

Semantic roles & 50–950 ramp

primary
#8A45C3
secondary
#AFCE96
accent
#DB4D8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A45C3

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

Preview Lab → · Contrast checker → · Palette generator →

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