#8A42B4#8A42B4

#8A42B4 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.179 H 310.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A42B4
RGBrgb(138, 66, 180)
HSLhsl(278, 46%, 48%)
HSVhsv(278, 63%, 71%)
CMYKcmyk(23.3%, 63.3%, 0%, 29.4%)
CIE-LABlab(42.15, 50.03, -48.18)
CIE-LCHlch(42.15, 69.46, 316.08°)
OKLaboklab(52.29% 0.1171 -0.1358)
OKLCHoklch(52.29% 0.179 310.8)
XYZxyz(20.6661, 12.5954, 44.5137)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42B4 #6CB442
analogous
#5142B4 #8A42B4 #B442A5
triadic
#8A42B4 #B48A42 #42B48A
tetradic
#8A42B4 #B45142 #6CB442 #42A5B4
square
#8A42B4 #B45142 #6CB442 #42A5B4
split-complementary
#8A42B4 #A5B442 #42B451
monochromatic
#45215A #683287 #8A42B4 #A66BC9 #C197D9

Accessibility & contrast

On white

5.97
#8A42B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A42B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42B4
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42B4#FFFFFF#000000##FFFFFF
##8A42B41.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0860B8
Deuteranopia (green-blind)
#3565B1
Tritanopia (blue-blind)
#855875
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a42b4;
/* rgb */ color: rgb(138, 66, 180);
/* oklch */ color: oklch(52.3% 0.179 310.8);
Tailwind
colors: {
  custom: {
    50: '#af7bcb',
    500: '#8a42b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a42b4;
$custom-light: #af7bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42b4",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 277.895,
    "s": 46.341,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52289,
    "c": 0.1793,
    "h": 310.8
  },
  "luminance": 0.12595
}

Semantic roles & 50–950 ramp

primary
#8A42B4
secondary
#A2C58D
accent
#D65283
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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