#8A42DA#8A42DA

#8A42DA is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.220 H 301.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8A42DA
RGBrgb(138, 66, 218)
HSLhsl(268, 67%, 56%)
HSVhsv(268, 70%, 85%)
CMYKcmyk(36.7%, 69.7%, 0%, 14.5%)
CIE-LABlab(44.75, 58.87, -66.02)
CIE-LCHlch(44.75, 88.45, 311.72°)
OKLaboklab(54.98% 0.1132 -0.1882)
OKLCHoklch(54.98% 0.22 301)
XYZxyz(25.0813, 14.3615, 67.7667)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42DA #92DA42
analogous
#4246DA #8A42DA #D642DA
triadic
#8A42DA #DA8A42 #42DA8A
tetradic
#8A42DA #DA4246 #92DA42 #42DAD6
square
#8A42DA #DA4246 #92DA42 #42DAD6
split-complementary
#8A42DA #DAD642 #46DA42
monochromatic
#4E1A87 #6B24BA #8A42DA #AA75E4 #C9A8EE

Accessibility & contrast

On white

5.42
#8A42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8A42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42DA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42DA#FFFFFF#000000##FFFFFF
##8A42DA1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#796789
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a42da;
/* rgb */ color: rgb(138, 66, 218);
/* oklch */ color: oklch(55.0% 0.220 301.0);
Tailwind
colors: {
  custom: {
    50: '#b27ce6',
    500: '#8a42da',
    950: '#000000',
  },
}
SCSS
$custom: #8a42da;
$custom-light: #b27ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42da",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 268.421,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54978,
    "c": 0.21959,
    "h": 301
  },
  "luminance": 0.14362
}

Semantic roles & 50–950 ramp

primary
#8A42DA
secondary
#BEDB9C
accent
#EA3E98
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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