#8742CE#8742CE

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

Color values

HEX#8742CE
RGBrgb(135, 66, 206)
HSLhsl(270, 59%, 53%)
HSVhsv(270, 68%, 81%)
CMYKcmyk(34.5%, 68%, 0%, 19.2%)
CIE-LABlab(43.51, 55.41, -61.15)
CIE-LCHlch(43.51, 82.52, 312.18°)
OKLaboklab(53.74% 0.1109 -0.174)
OKLCHoklch(53.74% 0.206 302.5)
XYZxyz(23.0778, 13.5035, 59.7712)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742CE #89CE42
analogous
#4243CE #8742CE #CD42CE
triadic
#8742CE #CE8742 #42CE87
tetradic
#8742CE #CE4243 #89CE42 #42CECD
square
#8742CE #CE4243 #89CE42 #42CECD
split-complementary
#8742CE #CECD42 #43CE42
monochromatic
#4A1F77 #692BA7 #8742CE #A673DB #C5A3E7

Accessibility & contrast

On white

5.67
#8742CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8742CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742CE
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742CE#FFFFFF#000000##FFFFFF
##8742CE1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#796283
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8742ce;
/* rgb */ color: rgb(135, 66, 206);
/* oklch */ color: oklch(53.7% 0.206 302.5);
Tailwind
colors: {
  custom: {
    50: '#af7bde',
    500: '#8742ce',
    950: '#000000',
  },
}
SCSS
$custom: #8742ce;
$custom-light: #af7bde;
$custom-dark: #000000;
JSON
{
  "hex": "#8742ce",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 269.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53743,
    "c": 0.20631,
    "h": 302.5
  },
  "luminance": 0.13504
}

Semantic roles & 50–950 ramp

primary
#8742CE
secondary
#B6D498
accent
#E24695
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8742CE

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

Preview Lab → · Contrast checker → · Palette generator →

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