#8A45C0#8A45C0

#8A45C0 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.5% C 0.188 H 306.9°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A45C0
RGBrgb(138, 69, 192)
HSLhsl(274, 49%, 51%)
HSVhsv(274, 64%, 75%)
CMYKcmyk(28.1%, 64.1%, 0%, 24.7%)
CIE-LABlab(43.46, 51.28, -53.11)
CIE-LCHlch(43.46, 73.83, 314.00°)
OKLaboklab(53.48% 0.113 -0.1502)
OKLCHoklch(53.48% 0.188 306.9)
XYZxyz(22.1218, 13.4655, 51.2927)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45C0 #7BC045
analogous
#4C45C0 #8A45C0 #C045B8
triadic
#8A45C0 #C08A45 #45C08A
tetradic
#8A45C0 #C04C45 #7BC045 #45B8C0
square
#8A45C0 #C04C45 #7BC045 #45B8C0
split-complementary
#8A45C0 #B8C045 #45C04C
monochromatic
#492368 #6A3395 #8A45C0 #A773CF #C4A0DF

Accessibility & contrast

On white

5.69
#8A45C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A45C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45C0
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45C0#FFFFFF#000000##FFFFFF
##8A45C01.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C4
Deuteranopia (green-blind)
#2B67BD
Tritanopia (blue-blind)
#815F7C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a45c0;
/* rgb */ color: rgb(138, 69, 192);
/* oklch */ color: oklch(53.5% 0.188 306.9);
Tailwind
colors: {
  custom: {
    50: '#b07dd4',
    500: '#8a45c0',
    950: '#000000',
  },
}
SCSS
$custom: #8a45c0;
$custom-light: #b07dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45c0",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 192
  },
  "hsl": {
    "h": 273.659,
    "s": 49.398,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53481,
    "c": 0.18796,
    "h": 306.9
  },
  "luminance": 0.13465
}

Semantic roles & 50–950 ramp

primary
#8A45C0
secondary
#ADCC95
accent
#D94F8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A45C0

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

Preview Lab → · Contrast checker → · Palette generator →

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