#8A42B6#8A42B6

#8A42B6 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.181 H 310.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A42B6
RGBrgb(138, 66, 182)
HSLhsl(277, 47%, 49%)
HSVhsv(277, 64%, 71%)
CMYKcmyk(24.2%, 63.7%, 0%, 28.6%)
CIE-LABlab(42.27, 50.47, -49.16)
CIE-LCHlch(42.27, 70.46, 315.76°)
OKLaboklab(52.42% 0.117 -0.1386)
OKLCHoklch(52.42% 0.181 310.2)
XYZxyz(20.8713, 12.6775, 45.5944)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42B6 #6EB642
analogous
#5042B6 #8A42B6 #B642A8
triadic
#8A42B6 #B68A42 #42B68A
tetradic
#8A42B6 #B65042 #6EB642 #42A8B6
square
#8A42B6 #B65042 #6EB642 #42A8B6
split-complementary
#8A42B6 #A8B642 #42B650
monochromatic
#46215C #683289 #8A42B6 #A66CCA #C199DA

Accessibility & contrast

On white

5.94
#8A42B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A42B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42B6
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42B6#FFFFFF#000000##FFFFFF
##8A42B61.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0161BA
Deuteranopia (green-blind)
#3365B3
Tritanopia (blue-blind)
#845976
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a42b6;
/* rgb */ color: rgb(138, 66, 182);
/* oklch */ color: oklch(52.4% 0.181 310.2);
Tailwind
colors: {
  custom: {
    50: '#b07bcc',
    500: '#8a42b6',
    950: '#000000',
  },
}
SCSS
$custom: #8a42b6;
$custom-light: #b07bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42b6",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 277.241,
    "s": 46.774,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5242,
    "c": 0.18142,
    "h": 310.2
  },
  "luminance": 0.12677
}

Semantic roles & 50–950 ramp

primary
#8A42B6
secondary
#A3C68E
accent
#D65184
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A42B6

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

Preview Lab → · Contrast checker → · Palette generator →

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