#8A45B3#8A45B3

#8A45B3 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.174 H 310.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A45B3
RGBrgb(138, 69, 179)
HSLhsl(278, 44%, 49%)
HSVhsv(278, 61%, 70%)
CMYKcmyk(22.9%, 61.5%, 0%, 29.8%)
CIE-LABlab(42.63, 48.31, -46.81)
CIE-LCHlch(42.63, 67.27, 315.90°)
OKLaboklab(52.62% 0.1134 -0.1318)
OKLCHoklch(52.62% 0.174 310.7)
XYZxyz(20.7445, 12.9146, 44.0391)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45B3 #6EB345
analogous
#5345B3 #8A45B3 #B345A5
triadic
#8A45B3 #B38A45 #45B38A
tetradic
#8A45B3 #B35345 #6EB345 #45A5B3
square
#8A45B3 #B35345 #6EB345 #45A5B3
split-complementary
#8A45B3 #A5B345 #45B353
monochromatic
#46235B #683487 #8A45B3 #A66EC7 #C19AD8

Accessibility & contrast

On white

5.86
#8A45B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A45B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45B3
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45B3#FFFFFF#000000##FFFFFF
##8A45B31.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B6
Deuteranopia (green-blind)
#3A66B0
Tritanopia (blue-blind)
#855A75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a45b3;
/* rgb */ color: rgb(138, 69, 179);
/* oklch */ color: oklch(52.6% 0.174 310.7);
Tailwind
colors: {
  custom: {
    50: '#af7cca',
    500: '#8a45b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a45b3;
$custom-light: #af7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45b3",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 179
  },
  "hsl": {
    "h": 277.636,
    "s": 44.355,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52622,
    "c": 0.17388,
    "h": 310.7
  },
  "luminance": 0.12914
}

Semantic roles & 50–950 ramp

primary
#8A45B3
secondary
#A3C48F
accent
#D45484
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45B3

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

Preview Lab → · Contrast checker → · Palette generator →

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