#8A42D0#8A42D0

#8A42D0 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.2% C 0.209 H 303.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A42D0
RGBrgb(138, 66, 208)
HSLhsl(270, 60%, 54%)
HSVhsv(270, 68%, 82%)
CMYKcmyk(33.7%, 68.3%, 0%, 18.4%)
CIE-LABlab(44.02, 56.48, -61.46)
CIE-LCHlch(44.02, 83.47, 312.58°)
OKLaboklab(54.23% 0.1147 -0.1748)
OKLCHoklch(54.23% 0.209 303.3)
XYZxyz(23.8120, 13.8538, 61.0818)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42D0 #88D042
analogous
#4342D0 #8A42D0 #D042CF
triadic
#8A42D0 #D08A42 #42D08A
tetradic
#8A42D0 #D04342 #88D042 #42CFD0
square
#8A42D0 #D04342 #88D042 #42CFD0
split-complementary
#8A42D0 #CFD042 #42D043
monochromatic
#4C1E79 #6B2AAA #8A42D0 #A873DC #C7A4E8

Accessibility & contrast

On white

5.57
#8A42D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A42D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42D0
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42D0#FFFFFF#000000##FFFFFF
##8A42D01.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D4
Deuteranopia (green-blind)
#0068CD
Tritanopia (blue-blind)
#7C6384
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a42d0;
/* rgb */ color: rgb(138, 66, 208);
/* oklch */ color: oklch(54.2% 0.209 303.3);
Tailwind
colors: {
  custom: {
    50: '#b17cdf',
    500: '#8a42d0',
    950: '#000000',
  },
}
SCSS
$custom: #8a42d0;
$custom-light: #b17cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42d0",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 270.423,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54233,
    "c": 0.20904,
    "h": 303.3
  },
  "luminance": 0.13854
}

Semantic roles & 50–950 ramp

primary
#8A42D0
secondary
#B6D599
accent
#E34493
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A42D0

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

Preview Lab → · Contrast checker → · Palette generator →

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