#8B45BA#8B45BA

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

Color values

HEX#8B45BA
RGBrgb(139, 69, 186)
HSLhsl(276, 46%, 50%)
HSVhsv(276, 63%, 73%)
CMYKcmyk(25.3%, 62.9%, 0%, 27.1%)
CIE-LABlab(43.20, 50.13, -50.01)
CIE-LCHlch(43.20, 70.81, 315.07°)
OKLaboklab(53.2% 0.1146 -0.1411)
OKLCHoklch(53.2% 0.182 309.1)
XYZxyz(21.6368, 13.2908, 47.8704)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B45BA #74BA45
analogous
#5045BA #8B45BA #BA45AF
triadic
#8B45BA #BA8B45 #45BA8B
tetradic
#8B45BA #BA5045 #74BA45 #45AFBA
square
#8B45BA #BA5045 #74BA45 #45AFBA
split-complementary
#8B45BA #AFBA45 #45BA50
monochromatic
#482461 #6A348D #8B45BA #A772CB #C39EDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B45BA#FFFFFF#000000##FFFFFF
##8B45BA1.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)
#0463BE
Deuteranopia (green-blind)
#3467B7
Tritanopia (blue-blind)
#845C79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8b45ba;
/* rgb */ color: rgb(139, 69, 186);
/* oklch */ color: oklch(53.2% 0.182 309.1);
Tailwind
colors: {
  custom: {
    50: '#b07dcf',
    500: '#8b45ba',
    950: '#000000',
  },
}
SCSS
$custom: #8b45ba;
$custom-light: #b07dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b45ba",
  "rgb": {
    "r": 139,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 275.897,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.53198,
    "c": 0.18177,
    "h": 309.1
  },
  "luminance": 0.1329
}

Semantic roles & 50–950 ramp

primary
#8B45BA
secondary
#A8C893
accent
#D65287
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8B45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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