#8742CD#8742CD

#8742CD is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.7% C 0.205 H 302.7°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8742CD
RGBrgb(135, 66, 205)
HSLhsl(270, 58%, 53%)
HSVhsv(270, 68%, 80%)
CMYKcmyk(34.1%, 67.8%, 0%, 19.6%)
CIE-LABlab(43.44, 55.17, -60.69)
CIE-LCHlch(43.44, 82.02, 312.27°)
OKLaboklab(53.67% 0.111 -0.1726)
OKLCHoklch(53.67% 0.205 302.7)
XYZxyz(22.9568, 13.4551, 59.1334)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742CD #88CD42
analogous
#4242CD #8742CD #CC42CD
triadic
#8742CD #CD8742 #42CD87
tetradic
#8742CD #CD4242 #88CD42 #42CDCC
square
#8742CD #CD4242 #88CD42 #42CDCC
split-complementary
#8742CD #CDCC42 #42CD42
monochromatic
#4A1F76 #682CA6 #8742CD #A672DA #C4A3E7

Accessibility & contrast

On white

5.69
#8742CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8742CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742CD
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742CD#FFFFFF#000000##FFFFFF
##8742CD1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#796282
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8742cd;
/* rgb */ color: rgb(135, 66, 205);
/* oklch */ color: oklch(53.7% 0.205 302.7);
Tailwind
colors: {
  custom: {
    50: '#af7bdd',
    500: '#8742cd',
    950: '#000000',
  },
}
SCSS
$custom: #8742cd;
$custom-light: #af7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8742cd",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 269.784,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5367,
    "c": 0.20523,
    "h": 302.7
  },
  "luminance": 0.13455
}

Semantic roles & 50–950 ramp

primary
#8742CD
secondary
#B6D397
accent
#E14694
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8742CD

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

Preview Lab → · Contrast checker → · Palette generator →

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