#8A42BB#8A42BB

#8A42BB is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.187 H 308.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A42BB
RGBrgb(138, 66, 187)
HSLhsl(276, 48%, 50%)
HSVhsv(276, 65%, 73%)
CMYKcmyk(26.2%, 64.7%, 0%, 26.7%)
CIE-LABlab(42.59, 51.61, -51.58)
CIE-LCHlch(42.59, 72.96, 315.02°)
OKLaboklab(52.75% 0.1168 -0.1457)
OKLCHoklch(52.75% 0.187 308.7)
XYZxyz(21.3973, 12.8879, 48.3645)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42BB #73BB42
analogous
#4D42BB #8A42BB #BB42B0
triadic
#8A42BB #BB8A42 #42BB8A
tetradic
#8A42BB #BB4D42 #73BB42 #42B0BB
square
#8A42BB #BB4D42 #73BB42 #42B0BB
split-complementary
#8A42BB #B0BB42 #42BB4D
monochromatic
#472261 #69328E #8A42BB #A66ECC #C29CDC

Accessibility & contrast

On white

5.87
#8A42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42BB
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42BB#FFFFFF#000000##FFFFFF
##8A42BB1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#2E65B8
Tritanopia (blue-blind)
#835B79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a42bb;
/* rgb */ color: rgb(138, 66, 187);
/* oklch */ color: oklch(52.8% 0.187 308.7);
Tailwind
colors: {
  custom: {
    50: '#b07bd0',
    500: '#8a42bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a42bb;
$custom-light: #b07bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42bb",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 275.702,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52754,
    "c": 0.18674,
    "h": 308.7
  },
  "luminance": 0.12888
}

Semantic roles & 50–950 ramp

primary
#8A42BB
secondary
#A7C891
accent
#D75087
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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