#8A42B1#8A42B1

#8A42B1 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.176 H 311.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8A42B1
RGBrgb(138, 66, 177)
HSLhsl(279, 46%, 48%)
HSVhsv(279, 63%, 69%)
CMYKcmyk(22%, 62.7%, 0%, 30.6%)
CIE-LABlab(41.96, 49.36, -46.71)
CIE-LCHlch(41.96, 67.96, 316.58°)
OKLaboklab(52.09% 0.1172 -0.1315)
OKLCHoklch(52.09% 0.176 311.7)
XYZxyz(20.3638, 12.4745, 42.9215)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42B1 #69B142
analogous
#5342B1 #8A42B1 #B142A0
triadic
#8A42B1 #B18A42 #42B18A
tetradic
#8A42B1 #B15342 #69B142 #42A0B1
square
#8A42B1 #B15342 #69B142 #42A0B1
split-complementary
#8A42B1 #A0B142 #42B153
monochromatic
#442158 #673184 #8A42B1 #A669C7 #C196D8

Accessibility & contrast

On white

6.01
#8A42B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A42B1
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42B1#FFFFFF#000000##FFFFFF
##8A42B11.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125FB4
Deuteranopia (green-blind)
#3864AE
Tritanopia (blue-blind)
#855773
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a42b1;
/* rgb */ color: rgb(138, 66, 177);
/* oklch */ color: oklch(52.1% 0.176 311.7);
Tailwind
colors: {
  custom: {
    50: '#af7bc9',
    500: '#8a42b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a42b1;
$custom-light: #af7bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42b1",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 278.919,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52094,
    "c": 0.17612,
    "h": 311.7
  },
  "luminance": 0.12474
}

Semantic roles & 50–950 ramp

primary
#8A42B1
secondary
#9FC38B
accent
#D55280
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A42B1

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

Preview Lab → · Contrast checker → · Palette generator →

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