#8A42D6#8A42D6

#8A42D6 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.215 H 301.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A42D6
RGBrgb(138, 66, 214)
HSLhsl(269, 64%, 55%)
HSVhsv(269, 69%, 84%)
CMYKcmyk(35.5%, 69.2%, 0%, 16.1%)
CIE-LABlab(44.45, 57.91, -64.21)
CIE-LCHlch(44.45, 86.46, 312.05°)
OKLaboklab(54.68% 0.1138 -0.1829)
OKLCHoklch(54.68% 0.215 301.9)
XYZxyz(24.5641, 14.1547, 65.0433)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42D6 #8ED642
analogous
#4244D6 #8A42D6 #D442D6
triadic
#8A42D6 #D68A42 #42D68A
tetradic
#8A42D6 #D64244 #8ED642 #42D6D4
square
#8A42D6 #D64244 #8ED642 #42D6D4
split-complementary
#8A42D6 #D6D442 #44D642
monochromatic
#4D1C82 #6B27B4 #8A42D6 #A974E1 #C8A7EC

Accessibility & contrast

On white

5.48
#8A42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42D6
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42D6#FFFFFF#000000##FFFFFF
##8A42D61.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#0068D3
Tritanopia (blue-blind)
#7A6587
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a42d6;
/* rgb */ color: rgb(138, 66, 214);
/* oklch */ color: oklch(54.7% 0.215 301.9);
Tailwind
colors: {
  custom: {
    50: '#b27ce4',
    500: '#8a42d6',
    950: '#000000',
  },
}
SCSS
$custom: #8a42d6;
$custom-light: #b27ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42d6",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 269.189,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54677,
    "c": 0.21538,
    "h": 301.9
  },
  "luminance": 0.14155
}

Semantic roles & 50–950 ramp

primary
#8A42D6
secondary
#BBD99B
accent
#E74096
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8A42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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