#8A45BC#8A45BC

#8A45BC is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.2% C 0.184 H 308.0°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A45BC
RGBrgb(138, 69, 188)
HSLhsl(275, 47%, 50%)
HSVhsv(275, 63%, 74%)
CMYKcmyk(26.6%, 63.3%, 0%, 26.3%)
CIE-LABlab(43.20, 50.36, -51.19)
CIE-LCHlch(43.20, 71.81, 314.53°)
OKLaboklab(53.21% 0.1132 -0.1446)
OKLCHoklch(53.21% 0.184 308)
XYZxyz(21.6846, 13.2907, 48.9902)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45BC #77BC45
analogous
#4E45BC #8A45BC #BC45B3
triadic
#8A45BC #BC8A45 #45BC8A
tetradic
#8A45BC #BC4E45 #77BC45 #45B3BC
square
#8A45BC #BC4E45 #77BC45 #45B3BC
split-complementary
#8A45BC #B3BC45 #45BC4E
monochromatic
#482463 #693490 #8A45BC #A672CC #C39FDC

Accessibility & contrast

On white

5.74
#8A45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45BC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45BC#FFFFFF#000000##FFFFFF
##8A45BC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#3067B9
Tritanopia (blue-blind)
#825D7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a45bc;
/* rgb */ color: rgb(138, 69, 188);
/* oklch */ color: oklch(53.2% 0.184 308.0);
Tailwind
colors: {
  custom: {
    50: '#b07dd1',
    500: '#8a45bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a45bc;
$custom-light: #b07dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45bc",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 274.79,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53211,
    "c": 0.18363,
    "h": 308
  },
  "luminance": 0.1329
}

Semantic roles & 50–950 ramp

primary
#8A45BC
secondary
#AAC994
accent
#D75189
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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