#8A42C5#8A42C5

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

Color values

HEX#8A42C5
RGBrgb(138, 66, 197)
HSLhsl(273, 53%, 52%)
HSVhsv(273, 66%, 77%)
CMYKcmyk(29.9%, 66.5%, 0%, 22.7%)
CIE-LABlab(43.26, 53.91, -56.34)
CIE-LCHlch(43.26, 77.97, 313.74°)
OKLaboklab(53.44% 0.116 -0.1597)
OKLCHoklch(53.44% 0.197 306)
XYZxyz(22.5053, 13.3311, 54.2001)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C5 #7DC542
analogous
#4942C5 #8A42C5 #C542BF
triadic
#8A42C5 #C58A42 #42C58A
tetradic
#8A42C5 #C54942 #7DC542 #42BFC5
square
#8A42C5 #C54942 #7DC542 #42BFC5
split-complementary
#8A42C5 #BFC542 #42C549
monochromatic
#4A216C #6A2F9A #8A42C5 #A771D3 #C4A0E2

Accessibility & contrast

On white

5.73
#8A42C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A42C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42C5
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C5#FFFFFF#000000##FFFFFF
##8A42C51.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#1E67C2
Tritanopia (blue-blind)
#805F7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a42c5;
/* rgb */ color: rgb(138, 66, 197);
/* oklch */ color: oklch(53.4% 0.197 306.0);
Tailwind
colors: {
  custom: {
    50: '#b17bd7',
    500: '#8a42c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c5;
$custom-light: #b17bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c5",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 272.977,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53444,
    "c": 0.19737,
    "h": 306
  },
  "luminance": 0.13331
}

Semantic roles & 50–950 ramp

primary
#8A42C5
secondary
#AFCE95
accent
#DC4B8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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