#8A45C8#8A45C8

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

Color values

HEX#8A45C8
RGBrgb(138, 69, 200)
HSLhsl(272, 54%, 53%)
HSVhsv(272, 66%, 78%)
CMYKcmyk(31%, 65.5%, 0%, 21.6%)
CIE-LABlab(43.99, 53.16, -56.90)
CIE-LCHlch(43.99, 77.86, 313.05°)
OKLaboklab(54.03% 0.1123 -0.1614)
OKLCHoklch(54.03% 0.197 304.8)
XYZxyz(23.0324, 13.8298, 56.0884)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45C8 #83C845
analogous
#4845C8 #8A45C8 #C845C5
triadic
#8A45C8 #C88A45 #45C88A
tetradic
#8A45C8 #C84845 #83C845 #45C5C8
square
#8A45C8 #C84845 #83C845 #45C5C8
split-complementary
#8A45C8 #C5C845 #45C848
monochromatic
#4B2171 #6B2FA0 #8A45C8 #A874D6 #C5A3E4

Accessibility & contrast

On white

5.58
#8A45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45C8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45C8#FFFFFF#000000##FFFFFF
##8A45C81.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#1E68C5
Tritanopia (blue-blind)
#7F6181
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a45c8;
/* rgb */ color: rgb(138, 69, 200);
/* oklch */ color: oklch(54.0% 0.197 304.8);
Tailwind
colors: {
  custom: {
    50: '#b17dd9',
    500: '#8a45c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a45c8;
$custom-light: #b17dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45c8",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 271.603,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54033,
    "c": 0.19662,
    "h": 304.8
  },
  "luminance": 0.1383
}

Semantic roles & 50–950 ramp

primary
#8A45C8
secondary
#B3D198
accent
#DE4A90
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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