#8A42AF#8A42AF

#8A42AF is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.174 H 312.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8A42AF
RGBrgb(138, 66, 175)
HSLhsl(280, 45%, 47%)
HSVhsv(280, 62%, 69%)
CMYKcmyk(21.1%, 62.3%, 0%, 31.4%)
CIE-LABlab(41.84, 48.91, -45.73)
CIE-LCHlch(41.84, 66.96, 316.93°)
OKLaboklab(51.97% 0.1172 -0.1286)
OKLCHoklch(51.97% 0.174 312.4)
XYZxyz(20.1659, 12.3954, 41.8794)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42AF #67AF42
analogous
#5442AF #8A42AF #AF429E
triadic
#8A42AF #AF8A42 #42AF8A
tetradic
#8A42AF #AF5442 #67AF42 #429EAF
square
#8A42AF #AF5442 #67AF42 #429EAF
split-complementary
#8A42AF #9EAF42 #42AF54
monochromatic
#442056 #673183 #8A42AF #A668C6 #C095D7

Accessibility & contrast

On white

6.04
#8A42AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8A42AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42AF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42AF#FFFFFF#000000##FFFFFF
##8A42AF1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165FB2
Deuteranopia (green-blind)
#3A64AC
Tritanopia (blue-blind)
#865672
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a42af;
/* rgb */ color: rgb(138, 66, 175);
/* oklch */ color: oklch(52.0% 0.174 312.4);
Tailwind
colors: {
  custom: {
    50: '#af7bc7',
    500: '#8a42af',
    950: '#000000',
  },
}
SCSS
$custom: #8a42af;
$custom-light: #af7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42af",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 279.633,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51965,
    "c": 0.174,
    "h": 312.4
  },
  "luminance": 0.12395
}

Semantic roles & 50–950 ramp

primary
#8A42AF
secondary
#9DC28A
accent
#D5537F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A42AF

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

Preview Lab → · Contrast checker → · Palette generator →

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