#8A42C3#8A42C3

#8A42C3 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.195 H 306.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A42C3
RGBrgb(138, 66, 195)
HSLhsl(273, 52%, 51%)
HSVhsv(273, 66%, 76%)
CMYKcmyk(29.2%, 66.2%, 0%, 23.5%)
CIE-LABlab(43.12, 53.44, -55.39)
CIE-LCHlch(43.12, 76.97, 313.97°)
OKLaboklab(53.3% 0.1162 -0.1569)
OKLCHoklch(53.3% 0.195 306.5)
XYZxyz(22.2777, 13.2401, 53.0012)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C3 #7BC342
analogous
#4942C3 #8A42C3 #C342BB
triadic
#8A42C3 #C38A42 #42C38A
tetradic
#8A42C3 #C34942 #7BC342 #42BBC3
square
#8A42C3 #C34942 #7BC342 #42BBC3
split-complementary
#8A42C3 #BBC342 #42C349
monochromatic
#492169 #6A3098 #8A42C3 #A770D2 #C49FE0

Accessibility & contrast

On white

5.76
#8A42C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A42C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42C3
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C3#FFFFFF#000000##FFFFFF
##8A42C31.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#2266C0
Tritanopia (blue-blind)
#805E7D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a42c3;
/* rgb */ color: rgb(138, 66, 195);
/* oklch */ color: oklch(53.3% 0.195 306.5);
Tailwind
colors: {
  custom: {
    50: '#b07bd6',
    500: '#8a42c3',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c3;
$custom-light: #b07bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c3",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 273.488,
    "s": 51.807,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53304,
    "c": 0.19524,
    "h": 306.5
  },
  "luminance": 0.1324
}

Semantic roles & 50–950 ramp

primary
#8A42C3
secondary
#ADCD94
accent
#DB4D8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A42C3

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

Preview Lab → · Contrast checker → · Palette generator →

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