#8A45BD#8A45BD

#8A45BD is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.3% C 0.185 H 307.8°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A45BD
RGBrgb(138, 69, 189)
HSLhsl(275, 48%, 51%)
HSVhsv(275, 63%, 74%)
CMYKcmyk(27%, 63.5%, 0%, 25.9%)
CIE-LABlab(43.26, 50.59, -51.67)
CIE-LCHlch(43.26, 72.31, 314.39°)
OKLaboklab(53.28% 0.1131 -0.146)
OKLCHoklch(53.28% 0.185 307.8)
XYZxyz(21.7928, 13.3339, 49.5599)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45BD #78BD45
analogous
#4E45BD #8A45BD #BD45B4
triadic
#8A45BD #BD8A45 #45BD8A
tetradic
#8A45BD #BD4E45 #78BD45 #45B4BD
square
#8A45BD #BD4E45 #78BD45 #45B4BD
split-complementary
#8A45BD #B4BD45 #45BD4E
monochromatic
#492464 #693491 #8A45BD #A672CD #C39FDD

Accessibility & contrast

On white

5.73
#8A45BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A45BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45BD
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45BD#FFFFFF#000000##FFFFFF
##8A45BD1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#2F67BA
Tritanopia (blue-blind)
#825D7B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a45bd;
/* rgb */ color: rgb(138, 69, 189);
/* oklch */ color: oklch(53.3% 0.185 307.8);
Tailwind
colors: {
  custom: {
    50: '#b07dd1',
    500: '#8a45bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a45bd;
$custom-light: #b07dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45bd",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 274.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53278,
    "c": 0.18471,
    "h": 307.8
  },
  "luminance": 0.13334
}

Semantic roles & 50–950 ramp

primary
#8A45BD
secondary
#ABCA94
accent
#D7518A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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