#8A42B3#8A42B3

#8A42B3 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.178 H 311.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A42B3
RGBrgb(138, 66, 179)
HSLhsl(278, 46%, 48%)
HSVhsv(278, 63%, 70%)
CMYKcmyk(22.9%, 63.1%, 0%, 29.8%)
CIE-LABlab(42.08, 49.80, -47.69)
CIE-LCHlch(42.08, 68.96, 316.24°)
OKLaboklab(52.22% 0.1171 -0.1343)
OKLCHoklch(52.22% 0.178 311.1)
XYZxyz(20.5646, 12.5548, 43.9791)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42B3 #6BB342
analogous
#5142B3 #8A42B3 #B342A3
triadic
#8A42B3 #B38A42 #42B38A
tetradic
#8A42B3 #B35142 #6BB342 #42A3B3
square
#8A42B3 #B35142 #6BB342 #42A3B3
split-complementary
#8A42B3 #A3B342 #42B351
monochromatic
#45215A #683286 #8A42B3 #A66AC8 #C197D9

Accessibility & contrast

On white

5.98
#8A42B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A42B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42B3
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42B3#FFFFFF#000000##FFFFFF
##8A42B31.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C60B6
Deuteranopia (green-blind)
#3665B0
Tritanopia (blue-blind)
#855874
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a42b3;
/* rgb */ color: rgb(138, 66, 179);
/* oklch */ color: oklch(52.2% 0.178 311.1);
Tailwind
colors: {
  custom: {
    50: '#af7bca',
    500: '#8a42b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a42b3;
$custom-light: #af7bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42b3",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 278.23,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.52224,
    "c": 0.17824,
    "h": 311.1
  },
  "luminance": 0.12554
}

Semantic roles & 50–950 ramp

primary
#8A42B3
secondary
#A1C48C
accent
#D65282
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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