#8A45CD#8A45CD

#8A45CD is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.4% C 0.202 H 303.6°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A45CD
RGBrgb(138, 69, 205)
HSLhsl(270, 58%, 54%)
HSVhsv(270, 66%, 80%)
CMYKcmyk(32.7%, 66.3%, 0%, 19.6%)
CIE-LABlab(44.33, 54.34, -59.24)
CIE-LCHlch(44.33, 80.38, 312.53°)
OKLaboklab(54.39% 0.1118 -0.1682)
OKLCHoklch(54.39% 0.202 303.6)
XYZxyz(23.6263, 14.0673, 59.2163)
Luminance0.1407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45CD #88CD45
analogous
#4645CD #8A45CD #CD45CC
triadic
#8A45CD #CD8A45 #45CD8A
tetradic
#8A45CD #CD4645 #88CD45 #45CCCD
square
#8A45CD #CD4645 #88CD45 #45CCCD
split-complementary
#8A45CD #CCCD45 #45CD46
monochromatic
#4C2077 #6B2DA8 #8A45CD #A875DA #C7A5E7

Accessibility & contrast

On white

5.51
#8A45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8A45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45CD
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45CD#FFFFFF#000000##FFFFFF
##8A45CD1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#1169CA
Tritanopia (blue-blind)
#7D6383
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a45cd;
/* rgb */ color: rgb(138, 69, 205);
/* oklch */ color: oklch(54.4% 0.202 303.6);
Tailwind
colors: {
  custom: {
    50: '#b17ddd',
    500: '#8a45cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a45cd;
$custom-light: #b17ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45cd",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 270.441,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54387,
    "c": 0.20202,
    "h": 303.6
  },
  "luminance": 0.14067
}

Semantic roles & 50–950 ramp

primary
#8A45CD
secondary
#B6D49A
accent
#E14793
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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