#8742C8#8742C8

#8742C8 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.200 H 304.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8742C8
RGBrgb(135, 66, 200)
HSLhsl(271, 55%, 52%)
HSVhsv(271, 67%, 78%)
CMYKcmyk(32.5%, 67%, 0%, 21.6%)
CIE-LABlab(43.09, 53.98, -58.37)
CIE-LCHlch(43.09, 79.50, 312.76°)
OKLaboklab(53.31% 0.1116 -0.1658)
OKLCHoklch(53.31% 0.2 304)
XYZxyz(22.3628, 13.2175, 56.0055)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742C8 #83C842
analogous
#4442C8 #8742C8 #C842C6
triadic
#8742C8 #C88742 #42C887
tetradic
#8742C8 #C84442 #83C842 #42C6C8
square
#8742C8 #C84442 #83C842 #42C6C8
split-complementary
#8742C8 #C6C842 #42C844
monochromatic
#49206F #682E9F #8742C8 #A571D6 #C3A1E4

Accessibility & contrast

On white

5.76
#8742C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8742C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742C8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742C8#FFFFFF#000000##FFFFFF
##8742C81.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0E66C5
Tritanopia (blue-blind)
#7B6080
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8742c8;
/* rgb */ color: rgb(135, 66, 200);
/* oklch */ color: oklch(53.3% 0.200 304.0);
Tailwind
colors: {
  custom: {
    50: '#af7bd9',
    500: '#8742c8',
    950: '#000000',
  },
}
SCSS
$custom: #8742c8;
$custom-light: #af7bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8742c8",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 270.896,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53306,
    "c": 0.19986,
    "h": 304
  },
  "luminance": 0.13217
}

Semantic roles & 50–950 ramp

primary
#8742C8
secondary
#B2D096
accent
#DE4A92
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8742C8

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

Preview Lab → · Contrast checker → · Palette generator →

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