#8A42B9#8A42B9

#8A42B9 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.185 H 309.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8A42B9
RGBrgb(138, 66, 185)
HSLhsl(276, 47%, 49%)
HSVhsv(276, 64%, 73%)
CMYKcmyk(25.4%, 64.3%, 0%, 27.5%)
CIE-LABlab(42.46, 51.15, -50.61)
CIE-LCHlch(42.46, 71.96, 315.30°)
OKLaboklab(52.62% 0.1169 -0.1429)
OKLCHoklch(52.62% 0.185 309.3)
XYZxyz(21.1847, 12.8029, 47.2447)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42B9 #71B942
analogous
#4F42B9 #8A42B9 #B942AC
triadic
#8A42B9 #B98A42 #42B98A
tetradic
#8A42B9 #B94F42 #71B942 #42ACB9
square
#8A42B9 #B94F42 #71B942 #42ACB9
split-complementary
#8A42B9 #ACB942 #42B94F
monochromatic
#47225F #68328C #8A42B9 #A66DCB #C29ADB

Accessibility & contrast

On white

5.90
#8A42B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8A42B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42B9
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42B9#FFFFFF#000000##FFFFFF
##8A42B91.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#3065B6
Tritanopia (blue-blind)
#835A78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a42b9;
/* rgb */ color: rgb(138, 66, 185);
/* oklch */ color: oklch(52.6% 0.185 309.3);
Tailwind
colors: {
  custom: {
    50: '#b07bcf',
    500: '#8a42b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a42b9;
$custom-light: #b07bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42b9",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 276.303,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5262,
    "c": 0.18461,
    "h": 309.3
  },
  "luminance": 0.12802
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A42B9

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

Preview Lab → · Contrast checker → · Palette generator →

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