#8A45CA#8A45CA

#8A45CA is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.2% C 0.199 H 304.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8A45CA
RGBrgb(138, 69, 202)
HSLhsl(271, 56%, 53%)
HSVhsv(271, 66%, 79%)
CMYKcmyk(31.7%, 65.8%, 0%, 20.8%)
CIE-LABlab(44.12, 53.63, -57.84)
CIE-LCHlch(44.12, 78.87, 312.84°)
OKLaboklab(54.17% 0.1122 -0.1641)
OKLCHoklch(54.17% 0.199 304.3)
XYZxyz(23.2676, 13.9239, 57.3275)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45CA #85CA45
analogous
#4745CA #8A45CA #CA45C7
triadic
#8A45CA #CA8A45 #45CA8A
tetradic
#8A45CA #CA4745 #85CA45 #45C7CA
square
#8A45CA #CA4745 #85CA45 #45C7CA
split-complementary
#8A45CA #C7CA45 #45CA47
monochromatic
#4C2174 #6B2FA3 #8A45CA #A875D8 #C6A4E5

Accessibility & contrast

On white

5.55
#8A45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45CA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45CA#FFFFFF#000000##FFFFFF
##8A45CA1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#1968C7
Tritanopia (blue-blind)
#7E6282
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a45ca;
/* rgb */ color: rgb(138, 69, 202);
/* oklch */ color: oklch(54.2% 0.199 304.3);
Tailwind
colors: {
  custom: {
    50: '#b17ddb',
    500: '#8a45ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a45ca;
$custom-light: #b17ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45ca",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 271.128,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54174,
    "c": 0.19879,
    "h": 304.3
  },
  "luminance": 0.13924
}

Semantic roles & 50–950 ramp

primary
#8A45CA
secondary
#B4D299
accent
#DF4991
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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