#8A42CC#8A42CC

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

Color values

HEX#8A42CC
RGBrgb(138, 66, 204)
HSLhsl(271, 58%, 53%)
HSVhsv(271, 68%, 80%)
CMYKcmyk(32.4%, 67.6%, 0%, 20%)
CIE-LABlab(43.74, 55.54, -59.61)
CIE-LCHlch(43.74, 81.48, 312.98°)
OKLaboklab(53.94% 0.1152 -0.1693)
OKLCHoklch(53.94% 0.205 304.2)
XYZxyz(23.3261, 13.6594, 58.5227)
Luminance0.1366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42CC #84CC42
analogous
#4542CC #8A42CC #CC42C9
triadic
#8A42CC #CC8A42 #42CC8A
tetradic
#8A42CC #CC4542 #84CC42 #42C9CC
square
#8A42CC #CC4542 #84CC42 #42C9CC
split-complementary
#8A42CC #C9CC42 #42CC45
monochromatic
#4C1F74 #6B2CA4 #8A42CC #A872D9 #C6A2E6

Accessibility & contrast

On white

5.63
#8A42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8A42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42CC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42CC#FFFFFF#000000##FFFFFF
##8A42CC1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#0967C9
Tritanopia (blue-blind)
#7E6182
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a42cc;
/* rgb */ color: rgb(138, 66, 204);
/* oklch */ color: oklch(53.9% 0.205 304.2);
Tailwind
colors: {
  custom: {
    50: '#b17bdc',
    500: '#8a42cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a42cc;
$custom-light: #b17bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42cc",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 271.304,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53943,
    "c": 0.2048,
    "h": 304.2
  },
  "luminance": 0.13659
}

Semantic roles & 50–950 ramp

primary
#8A42CC
secondary
#B4D397
accent
#E14791
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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