#8A45C7#8A45C7

#8A45C7 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 54.0% C 0.196 H 305.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A45C7
RGBrgb(138, 69, 199)
HSLhsl(272, 54%, 53%)
HSVhsv(272, 65%, 78%)
CMYKcmyk(30.7%, 65.3%, 0%, 22%)
CIE-LABlab(43.92, 52.92, -56.43)
CIE-LCHlch(43.92, 77.36, 313.16°)
OKLaboklab(53.96% 0.1124 -0.16)
OKLCHoklch(53.96% 0.196 305.1)
XYZxyz(22.9159, 13.7832, 55.4749)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45C7 #82C745
analogous
#4945C7 #8A45C7 #C745C3
triadic
#8A45C7 #C78A45 #45C78A
tetradic
#8A45C7 #C74945 #82C745 #45C3C7
square
#8A45C7 #C74945 #82C745 #45C3C7
split-complementary
#8A45C7 #C3C745 #45C749
monochromatic
#4B2270 #6B309F #8A45C7 #A874D5 #C5A3E3

Accessibility & contrast

On white

5.59
#8A45C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A45C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45C7
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45C7#FFFFFF#000000##FFFFFF
##8A45C71.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CB
Deuteranopia (green-blind)
#2068C4
Tritanopia (blue-blind)
#7F6180
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a45c7;
/* rgb */ color: rgb(138, 69, 199);
/* oklch */ color: oklch(54.0% 0.196 305.1);
Tailwind
colors: {
  custom: {
    50: '#b17dd9',
    500: '#8a45c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a45c7;
$custom-light: #b17dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45c7",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 199
  },
  "hsl": {
    "h": 271.846,
    "s": 53.719,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53963,
    "c": 0.19554,
    "h": 305.1
  },
  "luminance": 0.13783
}

Semantic roles & 50–950 ramp

primary
#8A45C7
secondary
#B2D098
accent
#DD4B8F
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45C7

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

Preview Lab → · Contrast checker → · Palette generator →

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