#8742E2#8742E2

#8742E2 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.3% C 0.228 H 298.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8742E2
RGBrgb(135, 66, 226)
HSLhsl(266, 73%, 57%)
HSVhsv(266, 71%, 89%)
CMYKcmyk(40.3%, 70.8%, 0%, 11.4%)
CIE-LABlab(44.99, 60.26, -70.19)
CIE-LCHlch(44.99, 92.51, 310.65°)
OKLaboklab(55.26% 0.1077 -0.2005)
OKLCHoklch(55.26% 0.228 298.2)
XYZxyz(25.6638, 14.5379, 73.3907)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742E2 #9DE242
analogous
#424DE2 #8742E2 #D742E2
triadic
#8742E2 #E28742 #42E287
tetradic
#8742E2 #E2424D #9DE242 #42E2D7
square
#8742E2 #E2424D #9DE242 #42E2D7
split-complementary
#8742E2 #E2D742 #4DE242
monochromatic
#4C1793 #681FC8 #8742E2 #A977EA #CAACF2

Accessibility & contrast

On white

5.37
#8742E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8742E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742E2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742E2#FFFFFF#000000##FFFFFF
##8742E21.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#0069DF
Tritanopia (blue-blind)
#716A8E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8742e2;
/* rgb */ color: rgb(135, 66, 226);
/* oklch */ color: oklch(55.3% 0.228 298.2);
Tailwind
colors: {
  custom: {
    50: '#b17cec',
    500: '#8742e2',
    950: '#000000',
  },
}
SCSS
$custom: #8742e2;
$custom-light: #b17cec;
$custom-dark: #000000;
JSON
{
  "hex": "#8742e2",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 265.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55264,
    "c": 0.22761,
    "h": 298.2
  },
  "luminance": 0.14538
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8742E2

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

Preview Lab → · Contrast checker → · Palette generator →

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