#8A42D2#8A42D2

#8A42D2 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.211 H 302.8°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8A42D2
RGBrgb(138, 66, 210)
HSLhsl(270, 62%, 54%)
HSVhsv(270, 69%, 82%)
CMYKcmyk(34.3%, 68.6%, 0%, 17.6%)
CIE-LABlab(44.17, 56.96, -62.38)
CIE-LCHlch(44.17, 84.47, 312.40°)
OKLaboklab(54.38% 0.1144 -0.1775)
OKLCHoklch(54.38% 0.211 302.8)
XYZxyz(24.0596, 13.9528, 62.3859)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42D2 #8AD242
analogous
#4242D2 #8A42D2 #D242D2
triadic
#8A42D2 #D28A42 #42D28A
tetradic
#8A42D2 #D24242 #8AD242 #42D2D2
square
#8A42D2 #D24242 #8AD242 #42D2D2
split-complementary
#8A42D2 #D2D242 #42D242
monochromatic
#4D1E7C #6B29AD #8A42D2 #A973DE #C7A5EA

Accessibility & contrast

On white

5.54
#8A42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42D2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42D2#FFFFFF#000000##FFFFFF
##8A42D21.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#7B6385
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a42d2;
/* rgb */ color: rgb(138, 66, 210);
/* oklch */ color: oklch(54.4% 0.211 302.8);
Tailwind
colors: {
  custom: {
    50: '#b27ce1',
    500: '#8a42d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a42d2;
$custom-light: #b27ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42d2",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 270,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5438,
    "c": 0.21116,
    "h": 302.8
  },
  "luminance": 0.13953
}

Semantic roles & 50–950 ramp

primary
#8A42D2
secondary
#B8D799
accent
#E54394
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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