#8A42C7#8A42C7

#8A42C7 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.6% C 0.199 H 305.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8A42C7
RGBrgb(138, 66, 199)
HSLhsl(272, 54%, 52%)
HSVhsv(272, 67%, 78%)
CMYKcmyk(30.7%, 66.8%, 0%, 22%)
CIE-LABlab(43.39, 54.37, -57.28)
CIE-LCHlch(43.39, 78.97, 313.51°)
OKLaboklab(53.59% 0.1158 -0.1625)
OKLCHoklch(53.59% 0.199 305.5)
XYZxyz(22.7360, 13.4234, 55.4150)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C7 #7FC742
analogous
#4842C7 #8A42C7 #C742C2
triadic
#8A42C7 #C78A42 #42C78A
tetradic
#8A42C7 #C74842 #7FC742 #42C2C7
square
#8A42C7 #C74842 #7FC742 #42C2C7
split-complementary
#8A42C7 #C2C742 #42C748
monochromatic
#4B216E #6A2F9D #8A42C7 #A771D5 #C4A0E3

Accessibility & contrast

On white

5.70
#8A42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A42C7
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C7#FFFFFF#000000##FFFFFF
##8A42C71.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a42c7;
/* rgb */ color: rgb(138, 66, 199);
/* oklch */ color: oklch(53.6% 0.199 305.5);
Tailwind
colors: {
  custom: {
    50: '#b17bd9',
    500: '#8a42c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c7;
$custom-light: #b17bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c7",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 272.481,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53585,
    "c": 0.19949,
    "h": 305.5
  },
  "luminance": 0.13423
}

Semantic roles & 50–950 ramp

primary
#8A42C7
secondary
#B0D095
accent
#DE4A8E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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