#8742CF#8742CF

#8742CF is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.8% C 0.207 H 302.3°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8742CF
RGBrgb(135, 66, 207)
HSLhsl(269, 59%, 54%)
HSVhsv(269, 68%, 81%)
CMYKcmyk(34.8%, 68.1%, 0%, 18.8%)
CIE-LABlab(43.58, 55.65, -61.61)
CIE-LCHlch(43.58, 83.02, 312.09°)
OKLaboklab(53.82% 0.1108 -0.1753)
OKLCHoklch(53.82% 0.207 302.3)
XYZxyz(23.1997, 13.5523, 60.4130)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742CF #8ACF42
analogous
#4243CF #8742CF #CE42CF
triadic
#8742CF #CF8742 #42CF87
tetradic
#8742CF #CF4243 #8ACF42 #42CFCE
square
#8742CF #CF4243 #8ACF42 #42CFCE
split-complementary
#8742CF #CFCE42 #43CF42
monochromatic
#4A1F78 #692BA9 #8742CF #A673DB #C5A4E8

Accessibility & contrast

On white

5.66
#8742CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8742CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742CF
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742CF#FFFFFF#000000##FFFFFF
##8742CF1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0066CC
Tritanopia (blue-blind)
#786383
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8742cf;
/* rgb */ color: rgb(135, 66, 207);
/* oklch */ color: oklch(53.8% 0.207 302.3);
Tailwind
colors: {
  custom: {
    50: '#af7bdf',
    500: '#8742cf',
    950: '#000000',
  },
}
SCSS
$custom: #8742cf;
$custom-light: #af7bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8742cf",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 269.362,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53817,
    "c": 0.20737,
    "h": 302.3
  },
  "luminance": 0.13552
}

Semantic roles & 50–950 ramp

primary
#8742CF
secondary
#B7D598
accent
#E34596
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8742CF

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

Preview Lab → · Contrast checker → · Palette generator →

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