#8A42C1#8A42C1

#8A42C1 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.2% C 0.193 H 307.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A42C1
RGBrgb(138, 66, 193)
HSLhsl(274, 51%, 51%)
HSVhsv(274, 66%, 76%)
CMYKcmyk(28.5%, 65.8%, 0%, 24.3%)
CIE-LABlab(42.99, 52.98, -54.44)
CIE-LCHlch(42.99, 75.97, 314.22°)
OKLaboklab(53.16% 0.1163 -0.1541)
OKLCHoklch(53.16% 0.193 307)
XYZxyz(22.0531, 13.1502, 51.8182)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C1 #79C142
analogous
#4A42C1 #8A42C1 #C142B8
triadic
#8A42C1 #C18A42 #42C18A
tetradic
#8A42C1 #C14A42 #79C142 #42B8C1
square
#8A42C1 #C14A42 #79C142 #42B8C1
split-complementary
#8A42C1 #B8C142 #42C14A
monochromatic
#492267 #6A3195 #8A42C1 #A770D0 #C39EDF

Accessibility & contrast

On white

5.79
#8A42C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8A42C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42C1
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C1#FFFFFF#000000##FFFFFF
##8A42C11.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#2566BE
Tritanopia (blue-blind)
#815D7C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a42c1;
/* rgb */ color: rgb(138, 66, 193);
/* oklch */ color: oklch(53.2% 0.193 307.0);
Tailwind
colors: {
  custom: {
    50: '#b07bd4',
    500: '#8a42c1',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c1;
$custom-light: #b07bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c1",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 274.016,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53165,
    "c": 0.19312,
    "h": 307
  },
  "luminance": 0.1315
}

Semantic roles & 50–950 ramp

primary
#8A42C1
secondary
#ACCC93
accent
#DA4E8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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