#8A45B5#8A45B5

#8A45B5 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.176 H 310.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A45B5
RGBrgb(138, 69, 181)
HSLhsl(277, 45%, 49%)
HSVhsv(277, 62%, 71%)
CMYKcmyk(23.8%, 61.9%, 0%, 29%)
CIE-LABlab(42.76, 48.76, -47.79)
CIE-LCHlch(42.76, 68.28, 315.57°)
OKLaboklab(52.75% 0.1134 -0.1346)
OKLCHoklch(52.75% 0.176 310.1)
XYZxyz(20.9482, 12.9961, 45.1121)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45B5 #70B545
analogous
#5245B5 #8A45B5 #B545A8
triadic
#8A45B5 #B58A45 #45B58A
tetradic
#8A45B5 #B55245 #70B545 #45A8B5
square
#8A45B5 #B55245 #70B545 #45A8B5
split-complementary
#8A45B5 #A8B545 #45B552
monochromatic
#46235C #683489 #8A45B5 #A66FC8 #C19BD9

Accessibility & contrast

On white

5.83
#8A45B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A45B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45B5
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45B5#FFFFFF#000000##FFFFFF
##8A45B51.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1362B9
Deuteranopia (green-blind)
#3866B2
Tritanopia (blue-blind)
#845B76
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a45b5;
/* rgb */ color: rgb(138, 69, 181);
/* oklch */ color: oklch(52.8% 0.176 310.1);
Tailwind
colors: {
  custom: {
    50: '#af7dcc',
    500: '#8a45b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a45b5;
$custom-light: #af7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45b5",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 276.964,
    "s": 44.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52751,
    "c": 0.17604,
    "h": 310.1
  },
  "luminance": 0.12996
}

Semantic roles & 50–950 ramp

primary
#8A45B5
secondary
#A5C591
accent
#D55385
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45B5

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

Preview Lab → · Contrast checker → · Palette generator →

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