#8A45BA#8A45BA

#8A45BA is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.1% C 0.181 H 308.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A45BA
RGBrgb(138, 69, 186)
HSLhsl(275, 46%, 50%)
HSVhsv(275, 63%, 73%)
CMYKcmyk(25.8%, 62.9%, 0%, 27.1%)
CIE-LABlab(43.07, 49.90, -50.22)
CIE-LCHlch(43.07, 70.80, 314.81°)
OKLaboklab(53.08% 0.1133 -0.1418)
OKLCHoklch(53.08% 0.181 308.6)
XYZxyz(21.4705, 13.2050, 47.8626)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45BA #75BA45
analogous
#5045BA #8A45BA #BA45AF
triadic
#8A45BA #BA8A45 #45BA8A
tetradic
#8A45BA #BA5045 #75BA45 #45AFBA
square
#8A45BA #BA5045 #75BA45 #45AFBA
split-complementary
#8A45BA #AFBA45 #45BA50
monochromatic
#482461 #69348D #8A45BA #A672CB #C29EDB

Accessibility & contrast

On white

5.77
#8A45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45BA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45BA#FFFFFF#000000##FFFFFF
##8A45BA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0263BE
Deuteranopia (green-blind)
#3367B7
Tritanopia (blue-blind)
#835C79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a45ba;
/* rgb */ color: rgb(138, 69, 186);
/* oklch */ color: oklch(53.1% 0.181 308.6);
Tailwind
colors: {
  custom: {
    50: '#b07dcf',
    500: '#8a45ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a45ba;
$custom-light: #b07dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45ba",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 275.385,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.53078,
    "c": 0.18145,
    "h": 308.6
  },
  "luminance": 0.13205
}

Semantic roles & 50–950 ramp

primary
#8A45BA
secondary
#A9C893
accent
#D65288
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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