#8D42C7#8D42C7

#8D42C7 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 53.9% C 0.200 H 306.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8D42C7
RGBrgb(141, 66, 199)
HSLhsl(274, 54%, 52%)
HSVhsv(274, 67%, 78%)
CMYKcmyk(29.1%, 66.8%, 0%, 22%)
CIE-LABlab(43.77, 55.01, -56.64)
CIE-LCHlch(43.77, 78.96, 314.16°)
OKLaboklab(53.94% 0.1197 -0.1605)
OKLCHoklch(53.94% 0.2 306.7)
XYZxyz(23.2393, 13.6829, 55.4386)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42C7 #7CC742
analogous
#4B42C7 #8D42C7 #C742BE
triadic
#8D42C7 #C78D42 #42C78D
tetradic
#8D42C7 #C74B42 #7CC742 #42BEC7
square
#8D42C7 #C74B42 #7CC742 #42BEC7
split-complementary
#8D42C7 #BEC742 #42C74B
monochromatic
#4C216E #6D2F9D #8D42C7 #A971D5 #C6A0E3

Accessibility & contrast

On white

5.62
#8D42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8D42C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42C7
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42C7#FFFFFF#000000##FFFFFF
##8D42C71.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#2068C4
Tritanopia (blue-blind)
#835F7F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d42c7;
/* rgb */ color: rgb(141, 66, 199);
/* oklch */ color: oklch(53.9% 0.200 306.7);
Tailwind
colors: {
  custom: {
    50: '#b37cd9',
    500: '#8d42c7',
    950: '#000000',
  },
}
SCSS
$custom: #8d42c7;
$custom-light: #b37cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42c7",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 273.835,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5394,
    "c": 0.20025,
    "h": 306.7
  },
  "luminance": 0.13683
}

Semantic roles & 50–950 ramp

primary
#8D42C7
secondary
#AFD095
accent
#DE4A8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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