#8A45B1#8A45B1

#8A45B1 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.5% C 0.172 H 311.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A45B1
RGBrgb(138, 69, 177)
HSLhsl(278, 44%, 48%)
HSVhsv(278, 61%, 69%)
CMYKcmyk(22%, 61%, 0%, 30.6%)
CIE-LABlab(42.51, 47.86, -45.83)
CIE-LCHlch(42.51, 66.26, 316.24°)
OKLaboklab(52.49% 0.1135 -0.1289)
OKLCHoklch(52.49% 0.172 311.4)
XYZxyz(20.5437, 12.8343, 42.9815)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45B1 #6CB145
analogous
#5445B1 #8A45B1 #B145A2
triadic
#8A45B1 #B18A45 #45B18A
tetradic
#8A45B1 #B15445 #6CB145 #45A2B1
square
#8A45B1 #B15445 #6CB145 #45A2B1
split-complementary
#8A45B1 #A2B145 #45B154
monochromatic
#452359 #683485 #8A45B1 #A66DC6 #C199D7

Accessibility & contrast

On white

5.89
#8A45B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A45B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45B1
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45B1#FFFFFF#000000##FFFFFF
##8A45B11.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B61B4
Deuteranopia (green-blind)
#3B66AE
Tritanopia (blue-blind)
#855974
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a45b1;
/* rgb */ color: rgb(138, 69, 177);
/* oklch */ color: oklch(52.5% 0.172 311.4);
Tailwind
colors: {
  custom: {
    50: '#af7cc9',
    500: '#8a45b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a45b1;
$custom-light: #af7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45b1",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 177
  },
  "hsl": {
    "h": 278.333,
    "s": 43.902,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52494,
    "c": 0.17172,
    "h": 311.4
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

primary
#8A45B1
secondary
#A2C38E
accent
#D45482
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45B1

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

Preview Lab → · Contrast checker → · Palette generator →

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