#8742CA#8742CA

#8742CA is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.5% C 0.202 H 303.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8742CA
RGBrgb(135, 66, 202)
HSLhsl(270, 56%, 53%)
HSVhsv(270, 67%, 79%)
CMYKcmyk(33.2%, 67.3%, 0%, 20.8%)
CIE-LABlab(43.23, 54.45, -59.30)
CIE-LCHlch(43.23, 80.51, 312.56°)
OKLaboklab(53.45% 0.1114 -0.1685)
OKLCHoklch(53.45% 0.202 303.5)
XYZxyz(22.5981, 13.3116, 57.2445)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742CA #85CA42
analogous
#4342CA #8742CA #CA42C9
triadic
#8742CA #CA8742 #42CA87
tetradic
#8742CA #CA4342 #85CA42 #42C9CA
square
#8742CA #CA4342 #85CA42 #42C9CA
split-complementary
#8742CA #C9CA42 #42CA43
monochromatic
#492072 #682DA2 #8742CA #A572D7 #C4A2E5

Accessibility & contrast

On white

5.73
#8742CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8742CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742CA
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742CA#FFFFFF#000000##FFFFFF
##8742CA1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0466C7
Tritanopia (blue-blind)
#7A6181
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8742ca;
/* rgb */ color: rgb(135, 66, 202);
/* oklch */ color: oklch(53.5% 0.202 303.5);
Tailwind
colors: {
  custom: {
    50: '#af7bdb',
    500: '#8742ca',
    950: '#000000',
  },
}
SCSS
$custom: #8742ca;
$custom-light: #af7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8742ca",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 270.441,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53451,
    "c": 0.20201,
    "h": 303.5
  },
  "luminance": 0.13312
}

Semantic roles & 50–950 ramp

primary
#8742CA
secondary
#B3D196
accent
#DF4893
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8742CA

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

Preview Lab → · Contrast checker → · Palette generator →

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