#8A42BF#8A42BF

#8A42BF is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.0% C 0.191 H 307.6°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A42BF
RGBrgb(138, 66, 191)
HSLhsl(275, 49%, 50%)
HSVhsv(275, 65%, 75%)
CMYKcmyk(27.7%, 65.4%, 0%, 25.1%)
CIE-LABlab(42.86, 52.52, -53.49)
CIE-LCHlch(42.86, 74.96, 314.48°)
OKLaboklab(53.03% 0.1165 -0.1514)
OKLCHoklch(53.03% 0.191 307.6)
XYZxyz(21.8315, 13.0616, 50.6512)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42BF #77BF42
analogous
#4B42BF #8A42BF #BF42B5
triadic
#8A42BF #BF8A42 #42BF8A
tetradic
#8A42BF #BF4B42 #77BF42 #42B5BF
square
#8A42BF #BF4B42 #77BF42 #42B5BF
split-complementary
#8A42BF #B5BF42 #42BF4B
monochromatic
#482265 #693292 #8A42BF #A670CE #C39DDE

Accessibility & contrast

On white

5.81
#8A42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8A42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42BF
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42BF#FFFFFF#000000##FFFFFF
##8A42BF1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#2866BC
Tritanopia (blue-blind)
#825C7B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a42bf;
/* rgb */ color: rgb(138, 66, 191);
/* oklch */ color: oklch(53.0% 0.191 307.6);
Tailwind
colors: {
  custom: {
    50: '#b07bd3',
    500: '#8a42bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a42bf;
$custom-light: #b07bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42bf",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 274.56,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53027,
    "c": 0.19099,
    "h": 307.6
  },
  "luminance": 0.13061
}

Semantic roles & 50–950 ramp

primary
#8A42BF
secondary
#AACA93
accent
#D94F89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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