#8942E2#8942E2

#8942E2 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.5% C 0.228 H 299.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8942E2
RGBrgb(137, 66, 226)
HSLhsl(267, 73%, 57%)
HSVhsv(267, 71%, 89%)
CMYKcmyk(39.4%, 70.8%, 0%, 11.4%)
CIE-LABlab(45.23, 60.61, -69.80)
CIE-LCHlch(45.23, 92.45, 310.97°)
OKLaboklab(55.48% 0.1104 -0.1993)
OKLCHoklch(55.48% 0.228 299)
XYZxyz(25.9887, 14.7054, 73.4060)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8942E2 #9BE242
analogous
#424BE2 #8942E2 #D942E2
triadic
#8942E2 #E28942 #42E289
tetradic
#8942E2 #E2424B #9BE242 #42E2D9
square
#8942E2 #E2424B #9BE242 #42E2D9
split-complementary
#8942E2 #E2D942 #4BE242
monochromatic
#4E1793 #6A1FC8 #8942E2 #AA77EA #CBACF2

Accessibility & contrast

On white

5.33
#8942E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8942E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8942E2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8942E2#FFFFFF#000000##FFFFFF
##8942E21.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8942e2;
/* rgb */ color: rgb(137, 66, 226);
/* oklch */ color: oklch(55.5% 0.228 299.0);
Tailwind
colors: {
  custom: {
    50: '#b27cec',
    500: '#8942e2',
    950: '#000000',
  },
}
SCSS
$custom: #8942e2;
$custom-light: #b27cec;
$custom-dark: #000000;
JSON
{
  "hex": "#8942e2",
  "rgb": {
    "r": 137,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 266.625,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55481,
    "c": 0.22787,
    "h": 299
  },
  "luminance": 0.14706
}

Semantic roles & 50–950 ramp

primary
#8942E2
secondary
#C4E09F
accent
#F0389E
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8942E2

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

Preview Lab → · Contrast checker → · Palette generator →

#8942E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva