#8A42C4#8A42C4

#8A42C4 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.196 H 306.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A42C4
RGBrgb(138, 66, 196)
HSLhsl(273, 52%, 51%)
HSVhsv(273, 66%, 77%)
CMYKcmyk(29.6%, 66.3%, 0%, 23.1%)
CIE-LABlab(43.19, 53.67, -55.86)
CIE-LCHlch(43.19, 77.47, 313.85°)
OKLaboklab(53.37% 0.1161 -0.1583)
OKLCHoklch(53.37% 0.196 306.2)
XYZxyz(22.3911, 13.2854, 53.5986)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C4 #7CC442
analogous
#4942C4 #8A42C4 #C442BD
triadic
#8A42C4 #C48A42 #42C48A
tetradic
#8A42C4 #C44942 #7CC442 #42BDC4
square
#8A42C4 #C44942 #7CC442 #42BDC4
split-complementary
#8A42C4 #BDC442 #42C449
monochromatic
#4A216A #6A3099 #8A42C4 #A771D3 #C49FE1

Accessibility & contrast

On white

5.74
#8A42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A42C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42C4
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C4#FFFFFF#000000##FFFFFF
##8A42C41.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#2066C1
Tritanopia (blue-blind)
#805E7D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a42c4;
/* rgb */ color: rgb(138, 66, 196);
/* oklch */ color: oklch(53.4% 0.196 306.2);
Tailwind
colors: {
  custom: {
    50: '#b07bd7',
    500: '#8a42c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c4;
$custom-light: #b07bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c4",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 273.231,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53374,
    "c": 0.1963,
    "h": 306.2
  },
  "luminance": 0.13285
}

Semantic roles & 50–950 ramp

primary
#8A42C4
secondary
#AECE94
accent
#DC4C8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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