#8A42BD#8A42BD

#8A42BD is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.189 H 308.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A42BD
RGBrgb(138, 66, 189)
HSLhsl(275, 48%, 50%)
HSVhsv(275, 65%, 74%)
CMYKcmyk(27%, 65.1%, 0%, 25.9%)
CIE-LABlab(42.72, 52.06, -52.54)
CIE-LCHlch(42.72, 73.96, 314.74°)
OKLaboklab(52.89% 0.1166 -0.1485)
OKLCHoklch(52.89% 0.189 308.1)
XYZxyz(21.6129, 12.9741, 49.4999)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42BD #75BD42
analogous
#4D42BD #8A42BD #BD42B2
triadic
#8A42BD #BD8A42 #42BD8A
tetradic
#8A42BD #BD4D42 #75BD42 #42B2BD
square
#8A42BD #BD4D42 #75BD42 #42B2BD
split-complementary
#8A42BD #B2BD42 #42BD4D
monochromatic
#482262 #693290 #8A42BD #A66FCD #C29DDD

Accessibility & contrast

On white

5.84
#8A42BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A42BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42BD
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42BD#FFFFFF#000000##FFFFFF
##8A42BD1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#2B66BA
Tritanopia (blue-blind)
#825C7A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a42bd;
/* rgb */ color: rgb(138, 66, 189);
/* oklch */ color: oklch(52.9% 0.189 308.1);
Tailwind
colors: {
  custom: {
    50: '#b07bd2',
    500: '#8a42bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a42bd;
$custom-light: #b07bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42bd",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 275.122,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.5289,
    "c": 0.18886,
    "h": 308.1
  },
  "luminance": 0.12974
}

Semantic roles & 50–950 ramp

primary
#8A42BD
secondary
#A9C992
accent
#D85088
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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