#8A45CE#8A45CE

#8A45CE is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.5% C 0.203 H 303.4°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8A45CE
RGBrgb(138, 69, 206)
HSLhsl(270, 58%, 54%)
HSVhsv(270, 67%, 81%)
CMYKcmyk(33%, 66.5%, 0%, 19.2%)
CIE-LABlab(44.40, 54.58, -59.70)
CIE-LCHlch(44.40, 80.89, 312.43°)
OKLaboklab(54.46% 0.1117 -0.1696)
OKLCHoklch(54.46% 0.203 303.4)
XYZxyz(23.7474, 14.1158, 59.8541)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45CE #89CE45
analogous
#4645CE #8A45CE #CE45CE
triadic
#8A45CE #CE8A45 #45CE8A
tetradic
#8A45CE #CE4645 #89CE45 #45CECE
square
#8A45CE #CE4645 #89CE45 #45CECE
split-complementary
#8A45CE #CECE45 #45CE46
monochromatic
#4D2079 #6B2DA9 #8A45CE #A875DB #C7A6E8

Accessibility & contrast

On white

5.49
#8A45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8A45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45CE
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45CE#FFFFFF#000000##FFFFFF
##8A45CE1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#0D69CB
Tritanopia (blue-blind)
#7D6484
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a45ce;
/* rgb */ color: rgb(138, 69, 206);
/* oklch */ color: oklch(54.5% 0.203 303.4);
Tailwind
colors: {
  custom: {
    50: '#b17dde',
    500: '#8a45ce',
    950: '#000000',
  },
}
SCSS
$custom: #8a45ce;
$custom-light: #b17dde;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45ce",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 270.219,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54458,
    "c": 0.2031,
    "h": 303.4
  },
  "luminance": 0.14116
}

Semantic roles & 50–950 ramp

primary
#8A45CE
secondary
#B7D59A
accent
#E24693
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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