#8A45B9#8A45B9

#8A45B9 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.180 H 308.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8A45B9
RGBrgb(138, 69, 185)
HSLhsl(276, 46%, 50%)
HSVhsv(276, 63%, 73%)
CMYKcmyk(25.4%, 62.7%, 0%, 27.5%)
CIE-LABlab(43.01, 49.67, -49.74)
CIE-LCHlch(43.01, 70.29, 314.96°)
OKLaboklab(53.01% 0.1133 -0.1403)
OKLCHoklch(53.01% 0.18 308.9)
XYZxyz(21.3646, 13.1627, 47.3047)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45B9 #74B945
analogous
#5045B9 #8A45B9 #B945AE
triadic
#8A45B9 #B98A45 #45B98A
tetradic
#8A45B9 #B95045 #74B945 #45AEB9
square
#8A45B9 #B95045 #74B945 #45AEB9
split-complementary
#8A45B9 #AEB945 #45B950
monochromatic
#472460 #69348C #8A45B9 #A671CA #C29EDB

Accessibility & contrast

On white

5.78
#8A45B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8A45B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45B9
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45B9#FFFFFF#000000##FFFFFF
##8A45B91.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0663BD
Deuteranopia (green-blind)
#3466B6
Tritanopia (blue-blind)
#835C79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a45b9;
/* rgb */ color: rgb(138, 69, 185);
/* oklch */ color: oklch(53.0% 0.180 308.9);
Tailwind
colors: {
  custom: {
    50: '#b07dcf',
    500: '#8a45b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a45b9;
$custom-light: #b07dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45b9",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 185
  },
  "hsl": {
    "h": 275.69,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53012,
    "c": 0.18037,
    "h": 308.9
  },
  "luminance": 0.13162
}

Semantic roles & 50–950 ramp

primary
#8A45B9
secondary
#A8C793
accent
#D55287
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A45B9

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

Preview Lab → · Contrast checker → · Palette generator →

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