#8A42C0#8A42C0

#8A42C0 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.192 H 307.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8A42C0
RGBrgb(138, 66, 192)
HSLhsl(274, 50%, 51%)
HSVhsv(274, 66%, 75%)
CMYKcmyk(28.1%, 65.6%, 0%, 24.7%)
CIE-LABlab(42.92, 52.75, -53.97)
CIE-LCHlch(42.92, 75.47, 314.35°)
OKLaboklab(53.1% 0.1164 -0.1527)
OKLCHoklch(53.1% 0.192 307.3)
XYZxyz(21.9419, 13.1057, 51.2327)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42C0 #78C042
analogous
#4B42C0 #8A42C0 #C042B7
triadic
#8A42C0 #C08A42 #42C08A
tetradic
#8A42C0 #C04B42 #78C042 #42B7C0
square
#8A42C0 #C04B42 #78C042 #42B7C0
split-complementary
#8A42C0 #B7C042 #42C04B
monochromatic
#492266 #693194 #8A42C0 #A670CF #C39EDF

Accessibility & contrast

On white

5.80
#8A42C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A42C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42C0
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42C0#FFFFFF#000000##FFFFFF
##8A42C01.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#2766BD
Tritanopia (blue-blind)
#815D7B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a42c0;
/* rgb */ color: rgb(138, 66, 192);
/* oklch */ color: oklch(53.1% 0.192 307.3);
Tailwind
colors: {
  custom: {
    50: '#b07bd4',
    500: '#8a42c0',
    950: '#000000',
  },
}
SCSS
$custom: #8a42c0;
$custom-light: #b07bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42c0",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 274.286,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53096,
    "c": 0.19205,
    "h": 307.3
  },
  "luminance": 0.13105
}

Semantic roles & 50–950 ramp

primary
#8A42C0
secondary
#ABCB93
accent
#DA4E8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A42C0

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

Preview Lab → · Contrast checker → · Palette generator →

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