#8A42E2#8A42E2

#8A42E2 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.6% C 0.228 H 299.4°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A42E2
RGBrgb(138, 66, 226)
HSLhsl(267, 73%, 57%)
HSVhsv(267, 71%, 89%)
CMYKcmyk(38.9%, 70.8%, 0%, 11.4%)
CIE-LABlab(45.35, 60.79, -69.61)
CIE-LCHlch(45.35, 92.42, 311.13°)
OKLaboklab(55.59% 0.1118 -0.1987)
OKLCHoklch(55.59% 0.228 299.4)
XYZxyz(26.1535, 14.7904, 73.4137)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42E2 #9AE242
analogous
#424AE2 #8A42E2 #DA42E2
triadic
#8A42E2 #E28A42 #42E28A
tetradic
#8A42E2 #E2424A #9AE242 #42E2DA
square
#8A42E2 #E2424A #9AE242 #42E2DA
split-complementary
#8A42E2 #E2DA42 #4AE242
monochromatic
#4F1793 #6B1FC8 #8A42E2 #AB77EA #CCACF2

Accessibility & contrast

On white

5.31
#8A42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8A42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42E2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42E2#FFFFFF#000000##FFFFFF
##8A42E21.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#756A8E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a42e2;
/* rgb */ color: rgb(138, 66, 226);
/* oklch */ color: oklch(55.6% 0.228 299.4);
Tailwind
colors: {
  custom: {
    50: '#b37cec',
    500: '#8a42e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a42e2;
$custom-light: #b37cec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42e2",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 267,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55591,
    "c": 0.228,
    "h": 299.4
  },
  "luminance": 0.14791
}

Semantic roles & 50–950 ramp

primary
#8A42E2
secondary
#C3E09F
accent
#F0389D
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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