#8A42C6#8A42C6

#8A42C6 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.5% C 0.198 H 305.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A42C6
RGBrgb(138, 66, 198)
HSLhsl(273, 54%, 52%)
HSVhsv(273, 67%, 78%)
CMYKcmyk(30.3%, 66.7%, 0%, 22.4%)
CIE-LABlab(43.33, 54.14, -56.81)
CIE-LCHlch(43.33, 78.47, 313.62°)
OKLaboklab(53.51% 0.1159 -0.1611)
OKLCHoklch(53.51% 0.198 305.7)
XYZxyz(22.6203, 13.3771, 54.8055)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C6 #7EC642
analogous
#4842C6 #8A42C6 #C642C0
triadic
#8A42C6 #C68A42 #42C68A
tetradic
#8A42C6 #C64842 #7EC642 #42C0C6
square
#8A42C6 #C64842 #7EC642 #42C0C6
split-complementary
#8A42C6 #C0C642 #42C648
monochromatic
#4A216D #6A2F9C #8A42C6 #A771D4 #C4A0E2

Accessibility & contrast

On white

5.71
#8A42C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A42C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42C6
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C6#FFFFFF#000000##FFFFFF
##8A42C61.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#1C67C3
Tritanopia (blue-blind)
#7F5F7F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a42c6;
/* rgb */ color: rgb(138, 66, 198);
/* oklch */ color: oklch(53.5% 0.198 305.7);
Tailwind
colors: {
  custom: {
    50: '#b17bd8',
    500: '#8a42c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c6;
$custom-light: #b17bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c6",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 272.727,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53514,
    "c": 0.19843,
    "h": 305.7
  },
  "luminance": 0.13377
}

Semantic roles & 50–950 ramp

primary
#8A42C6
secondary
#AFCF95
accent
#DD4B8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A42C6

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

Preview Lab → · Contrast checker → · Palette generator →

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