#8A42B0#8A42B0

#8A42B0 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.175 H 312.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8A42B0
RGBrgb(138, 66, 176)
HSLhsl(279, 45%, 47%)
HSVhsv(279, 63%, 69%)
CMYKcmyk(21.6%, 62.5%, 0%, 31%)
CIE-LABlab(41.90, 49.14, -46.22)
CIE-LCHlch(41.90, 67.46, 316.75°)
OKLaboklab(52.03% 0.1172 -0.13)
OKLCHoklch(52.03% 0.175 312)
XYZxyz(20.2645, 12.4348, 42.3985)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42B0 #68B042
analogous
#5342B0 #8A42B0 #B0429F
triadic
#8A42B0 #B08A42 #42B08A
tetradic
#8A42B0 #B05342 #68B042 #429FB0
square
#8A42B0 #B05342 #68B042 #429FB0
split-complementary
#8A42B0 #9FB042 #42B053
monochromatic
#442157 #673183 #8A42B0 #A669C7 #C095D7

Accessibility & contrast

On white

6.02
#8A42B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8A42B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42B0
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42B0#FFFFFF#000000##FFFFFF
##8A42B01.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145FB3
Deuteranopia (green-blind)
#3964AD
Tritanopia (blue-blind)
#865773
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a42b0;
/* rgb */ color: rgb(138, 66, 176);
/* oklch */ color: oklch(52.0% 0.175 312.0);
Tailwind
colors: {
  custom: {
    50: '#af7bc8',
    500: '#8a42b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a42b0;
$custom-light: #af7bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42b0",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 279.273,
    "s": 45.455,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52029,
    "c": 0.17507,
    "h": 312
  },
  "luminance": 0.12434
}

Semantic roles & 50–950 ramp

primary
#8A42B0
secondary
#9EC38B
accent
#D55380
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A42B0

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

Preview Lab → · Contrast checker → · Palette generator →

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