#8A45B8#8A45B8

#8A45B8 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.179 H 309.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A45B8
RGBrgb(138, 69, 184)
HSLhsl(276, 45%, 50%)
HSVhsv(276, 63%, 72%)
CMYKcmyk(25%, 62.5%, 0%, 27.8%)
CIE-LABlab(42.94, 49.44, -49.25)
CIE-LCHlch(42.94, 69.79, 315.11°)
OKLaboklab(52.95% 0.1133 -0.1389)
OKLCHoklch(52.95% 0.179 309.2)
XYZxyz(21.2594, 13.1206, 46.7507)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45B8 #73B845
analogous
#5045B8 #8A45B8 #B845AD
triadic
#8A45B8 #B88A45 #45B88A
tetradic
#8A45B8 #B85045 #73B845 #45ADB8
square
#8A45B8 #B85045 #73B845 #45ADB8
split-complementary
#8A45B8 #ADB845 #45B850
monochromatic
#47245F #69348B #8A45B8 #A671CA #C29DDA

Accessibility & contrast

On white

5.79
#8A45B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A45B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45B8
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45B8#FFFFFF#000000##FFFFFF
##8A45B81.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A62BC
Deuteranopia (green-blind)
#3566B5
Tritanopia (blue-blind)
#835C78
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a45b8;
/* rgb */ color: rgb(138, 69, 184);
/* oklch */ color: oklch(52.9% 0.179 309.2);
Tailwind
colors: {
  custom: {
    50: '#b07dce',
    500: '#8a45b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a45b8;
$custom-light: #b07dce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45b8",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 184
  },
  "hsl": {
    "h": 276,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52947,
    "c": 0.17929,
    "h": 309.2
  },
  "luminance": 0.1312
}

Semantic roles & 50–950 ramp

primary
#8A45B8
secondary
#A7C792
accent
#D55387
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A45B8

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

Preview Lab → · Contrast checker → · Palette generator →

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