#8A45D5#8A45D5

#8A45D5 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.0% C 0.211 H 301.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A45D5
RGBrgb(138, 69, 213)
HSLhsl(269, 63%, 55%)
HSVhsv(269, 68%, 84%)
CMYKcmyk(35.2%, 67.6%, 0%, 16.5%)
CIE-LABlab(44.89, 56.25, -62.93)
CIE-LCHlch(44.89, 84.41, 311.80°)
OKLaboklab(54.97% 0.1109 -0.1791)
OKLCHoklch(54.97% 0.211 301.8)
XYZxyz(24.6167, 14.4635, 64.4327)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45D5 #90D545
analogous
#4548D5 #8A45D5 #D245D5
triadic
#8A45D5 #D58A45 #45D58A
tetradic
#8A45D5 #D54548 #90D545 #45D5D2
square
#8A45D5 #D54548 #90D545 #45D5D2
split-complementary
#8A45D5 #D5D245 #48D545
monochromatic
#4E1D82 #6B29B4 #8A45D5 #A977E0 #C9A9EC

Accessibility & contrast

On white

5.39
#8A45D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A45D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45D5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45D5#FFFFFF#000000##FFFFFF
##8A45D51.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#7A6688
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a45d5;
/* rgb */ color: rgb(138, 69, 213);
/* oklch */ color: oklch(55.0% 0.211 301.8);
Tailwind
colors: {
  custom: {
    50: '#b27de3',
    500: '#8a45d5',
    950: '#000000',
  },
}
SCSS
$custom: #8a45d5;
$custom-light: #b27de3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45d5",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 268.75,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54966,
    "c": 0.21064,
    "h": 301.8
  },
  "luminance": 0.14464
}

Semantic roles & 50–950 ramp

primary
#8A45D5
secondary
#BCD99D
accent
#E64297
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8A45D5

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

Preview Lab → · Contrast checker → · Palette generator →

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