#8A45B2#8A45B2

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

Color values

HEX#8A45B2
RGBrgb(138, 69, 178)
HSLhsl(278, 44%, 48%)
HSVhsv(278, 61%, 70%)
CMYKcmyk(22.5%, 61.2%, 0%, 30.2%)
CIE-LABlab(42.57, 48.08, -46.32)
CIE-LCHlch(42.57, 66.77, 316.07°)
OKLaboklab(52.56% 0.1135 -0.1303)
OKLCHoklch(52.56% 0.173 311)
XYZxyz(20.6437, 12.8743, 43.5084)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45B2 #6DB245
analogous
#5345B2 #8A45B2 #B245A3
triadic
#8A45B2 #B28A45 #45B28A
tetradic
#8A45B2 #B25345 #6DB245 #45A3B2
square
#8A45B2 #B25345 #6DB245 #45A3B2
split-complementary
#8A45B2 #A3B245 #45B253
monochromatic
#46235A #683486 #8A45B2 #A66EC7 #C19AD8

Accessibility & contrast

On white

5.87
#8A45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A45B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45B2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45B2#FFFFFF#000000##FFFFFF
##8A45B21.005.873.575.87
#FFFFFF5.871.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#3B66AF
Tritanopia (blue-blind)
#855A75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a45b2;
/* rgb */ color: rgb(138, 69, 178);
/* oklch */ color: oklch(52.6% 0.173 311.0);
Tailwind
colors: {
  custom: {
    50: '#af7cca',
    500: '#8a45b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a45b2;
$custom-light: #af7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45b2",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 277.982,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52558,
    "c": 0.1728,
    "h": 311
  },
  "luminance": 0.12874
}

Semantic roles & 50–950 ramp

primary
#8A45B2
secondary
#A2C48F
accent
#D45483
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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