#8A42BE#8A42BE

#8A42BE is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.0% C 0.190 H 307.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A42BE
RGBrgb(138, 66, 190)
HSLhsl(275, 49%, 50%)
HSVhsv(275, 65%, 75%)
CMYKcmyk(27.4%, 65.3%, 0%, 25.5%)
CIE-LABlab(42.79, 52.29, -53.01)
CIE-LCHlch(42.79, 74.46, 314.61°)
OKLaboklab(52.96% 0.1166 -0.1499)
OKLCHoklch(52.96% 0.19 307.9)
XYZxyz(21.7218, 13.0177, 50.0736)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42BE #76BE42
analogous
#4C42BE #8A42BE #BE42B4
triadic
#8A42BE #BE8A42 #42BE8A
tetradic
#8A42BE #BE4C42 #76BE42 #42B4BE
square
#8A42BE #BE4C42 #76BE42 #42B4BE
split-complementary
#8A42BE #B4BE42 #42BE4C
monochromatic
#482263 #693291 #8A42BE #A670CE #C29DDD

Accessibility & contrast

On white

5.83
#8A42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42BE
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42BE#FFFFFF#000000##FFFFFF
##8A42BE1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a42be;
/* rgb */ color: rgb(138, 66, 190);
/* oklch */ color: oklch(53.0% 0.190 307.9);
Tailwind
colors: {
  custom: {
    50: '#b07bd2',
    500: '#8a42be',
    950: '#000000',
  },
}
SCSS
$custom: #8a42be;
$custom-light: #b07bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42be",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 274.839,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52958,
    "c": 0.18992,
    "h": 307.9
  },
  "luminance": 0.13017
}

Semantic roles & 50–950 ramp

primary
#8A42BE
secondary
#A9CA92
accent
#D84F89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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