#8A45C2#8A45C2

#8A45C2 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.6% C 0.190 H 306.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A45C2
RGBrgb(138, 69, 194)
HSLhsl(273, 51%, 52%)
HSVhsv(273, 64%, 76%)
CMYKcmyk(28.9%, 64.4%, 0%, 23.9%)
CIE-LABlab(43.59, 51.75, -54.06)
CIE-LCHlch(43.59, 74.84, 313.75°)
OKLaboklab(53.62% 0.1128 -0.153)
OKLCHoklch(53.62% 0.19 306.4)
XYZxyz(22.3449, 13.5548, 52.4677)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45C2 #7DC245
analogous
#4C45C2 #8A45C2 #C245BC
triadic
#8A45C2 #C28A45 #45C28A
tetradic
#8A45C2 #C24C45 #7DC245 #45BCC2
square
#8A45C2 #C24C45 #7DC245 #45BCC2
split-complementary
#8A45C2 #BCC245 #45C24C
monochromatic
#4A236A #6A3298 #8A45C2 #A773D1 #C4A1E0

Accessibility & contrast

On white

5.66
#8A45C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8A45C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45C2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45C2#FFFFFF#000000##FFFFFF
##8A45C21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#2867BF
Tritanopia (blue-blind)
#815F7D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a45c2;
/* rgb */ color: rgb(138, 69, 194);
/* oklch */ color: oklch(53.6% 0.190 306.4);
Tailwind
colors: {
  custom: {
    50: '#b07dd5',
    500: '#8a45c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a45c2;
$custom-light: #b07dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45c2",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 273.12,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53617,
    "c": 0.19012,
    "h": 306.4
  },
  "luminance": 0.13555
}

Semantic roles & 50–950 ramp

primary
#8A45C2
secondary
#AFCD96
accent
#DA4E8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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