#8A42BA#8A42BA

#8A42BA is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.186 H 309.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#8A42BA
RGBrgb(138, 66, 186)
HSLhsl(276, 48%, 49%)
HSVhsv(276, 65%, 73%)
CMYKcmyk(25.8%, 64.5%, 0%, 27.1%)
CIE-LABlab(42.53, 51.38, -51.09)
CIE-LCHlch(42.53, 72.46, 315.16°)
OKLaboklab(52.69% 0.1168 -0.1443)
OKLCHoklch(52.69% 0.186 309)
XYZxyz(21.2906, 12.8452, 47.8026)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42BA #72BA42
analogous
#4E42BA #8A42BA #BA42AE
triadic
#8A42BA #BA8A42 #42BA8A
tetradic
#8A42BA #BA4E42 #72BA42 #42AEBA
square
#8A42BA #BA4E42 #72BA42 #42AEBA
split-complementary
#8A42BA #AEBA42 #42BA4E
monochromatic
#472260 #68328D #8A42BA #A66ECB #C29BDB

Accessibility & contrast

On white

5.88
#8A42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42BA
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42BA#FFFFFF#000000##FFFFFF
##8A42BA1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2F65B7
Tritanopia (blue-blind)
#835A78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a42ba;
/* rgb */ color: rgb(138, 66, 186);
/* oklch */ color: oklch(52.7% 0.186 309.0);
Tailwind
colors: {
  custom: {
    50: '#b07bcf',
    500: '#8a42ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a42ba;
$custom-light: #b07bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42ba",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 276,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52687,
    "c": 0.18567,
    "h": 309
  },
  "luminance": 0.12845
}

Semantic roles & 50–950 ramp

primary
#8A42BA
secondary
#A6C890
accent
#D75186
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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