#8A45D1#8A45D1

#8A45D1 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.7% C 0.206 H 302.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8A45D1
RGBrgb(138, 69, 209)
HSLhsl(270, 60%, 55%)
HSVhsv(270, 67%, 82%)
CMYKcmyk(34%, 67%, 0%, 18%)
CIE-LABlab(44.61, 55.30, -61.09)
CIE-LCHlch(44.61, 82.40, 312.15°)
OKLaboklab(54.67% 0.1114 -0.1737)
OKLCHoklch(54.67% 0.206 302.7)
XYZxyz(24.1153, 14.2629, 61.7918)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45D1 #8CD145
analogous
#4546D1 #8A45D1 #D045D1
triadic
#8A45D1 #D18A45 #45D18A
tetradic
#8A45D1 #D14546 #8CD145 #45D1D0
square
#8A45D1 #D14546 #8CD145 #45D1D0
split-complementary
#8A45D1 #D1D045 #46D145
monochromatic
#4D1F7D #6B2BAE #8A45D1 #A976DD #C8A7E9

Accessibility & contrast

On white

5.45
#8A45D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A45D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45D1
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45D1#FFFFFF#000000##FFFFFF
##8A45D11.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D5
Deuteranopia (green-blind)
#0069CE
Tritanopia (blue-blind)
#7C6585
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a45d1;
/* rgb */ color: rgb(138, 69, 209);
/* oklch */ color: oklch(54.7% 0.206 302.7);
Tailwind
colors: {
  custom: {
    50: '#b17de0',
    500: '#8a45d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a45d1;
$custom-light: #b17de0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45d1",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 269.571,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54674,
    "c": 0.20633,
    "h": 302.7
  },
  "luminance": 0.14263
}

Semantic roles & 50–950 ramp

primary
#8A45D1
secondary
#B9D79B
accent
#E34495
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45D1

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

Preview Lab → · Contrast checker → · Palette generator →

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