#8A42D1#8A42D1

#8A42D1 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.210 H 303.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8A42D1
RGBrgb(138, 66, 209)
HSLhsl(270, 61%, 54%)
HSVhsv(270, 68%, 82%)
CMYKcmyk(34%, 68.4%, 0%, 18%)
CIE-LABlab(44.09, 56.72, -61.92)
CIE-LCHlch(44.09, 83.97, 312.49°)
OKLaboklab(54.31% 0.1145 -0.1761)
OKLCHoklch(54.31% 0.21 303)
XYZxyz(23.9354, 13.9032, 61.7318)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42D1 #89D142
analogous
#4342D1 #8A42D1 #D142D0
triadic
#8A42D1 #D18A42 #42D18A
tetradic
#8A42D1 #D14342 #89D142 #42D0D1
square
#8A42D1 #D14342 #89D142 #42D0D1
split-complementary
#8A42D1 #D0D142 #42D143
monochromatic
#4D1E7B #6B2AAC #8A42D1 #A873DD #C7A4E9

Accessibility & contrast

On white

5.55
#8A42D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A42D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42D1
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42D1#FFFFFF#000000##FFFFFF
##8A42D11.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D5
Deuteranopia (green-blind)
#0068CE
Tritanopia (blue-blind)
#7C6384
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a42d1;
/* rgb */ color: rgb(138, 66, 209);
/* oklch */ color: oklch(54.3% 0.210 303.0);
Tailwind
colors: {
  custom: {
    50: '#b17ce0',
    500: '#8a42d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a42d1;
$custom-light: #b17ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42d1",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 270.21,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54307,
    "c": 0.2101,
    "h": 303
  },
  "luminance": 0.13903
}

Semantic roles & 50–950 ramp

primary
#8A42D1
secondary
#B7D699
accent
#E44493
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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