#8742CC#8742CC

#8742CC is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.6% C 0.204 H 303.0°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8742CC
RGBrgb(135, 66, 204)
HSLhsl(270, 58%, 53%)
HSVhsv(270, 68%, 80%)
CMYKcmyk(33.8%, 67.6%, 0%, 20%)
CIE-LABlab(43.37, 54.93, -60.23)
CIE-LCHlch(43.37, 81.52, 312.37°)
OKLaboklab(53.6% 0.1112 -0.1713)
OKLCHoklch(53.6% 0.204 303)
XYZxyz(22.8364, 13.4070, 58.4997)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742CC #87CC42
analogous
#4242CC #8742CC #CC42CC
triadic
#8742CC #CC8742 #42CC87
tetradic
#8742CC #CC4242 #87CC42 #42CCCC
square
#8742CC #CC4242 #87CC42 #42CCCC
split-complementary
#8742CC #CCCC42 #42CC42
monochromatic
#4A1F74 #682CA4 #8742CC #A672D9 #C4A2E6

Accessibility & contrast

On white

5.70
#8742CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8742CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742CC
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742CC#FFFFFF#000000##FFFFFF
##8742CC1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#796282
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8742cc;
/* rgb */ color: rgb(135, 66, 204);
/* oklch */ color: oklch(53.6% 0.204 303.0);
Tailwind
colors: {
  custom: {
    50: '#af7bdc',
    500: '#8742cc',
    950: '#000000',
  },
}
SCSS
$custom: #8742cc;
$custom-light: #af7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8742cc",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 270,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53597,
    "c": 0.20416,
    "h": 303
  },
  "luminance": 0.13407
}

Semantic roles & 50–950 ramp

primary
#8742CC
secondary
#B5D397
accent
#E14794
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8742CC

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

Preview Lab → · Contrast checker → · Palette generator →

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