#8742CB#8742CB

#8742CB is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.5% C 0.203 H 303.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8742CB
RGBrgb(135, 66, 203)
HSLhsl(270, 57%, 53%)
HSVhsv(270, 67%, 80%)
CMYKcmyk(33.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(43.30, 54.69, -59.76)
CIE-LCHlch(43.30, 81.01, 312.46°)
OKLaboklab(53.52% 0.1113 -0.1699)
OKLCHoklch(53.52% 0.203 303.2)
XYZxyz(22.7169, 13.3591, 57.8701)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742CB #86CB42
analogous
#4342CB #8742CB #CB42CA
triadic
#8742CB #CB8742 #42CB87
tetradic
#8742CB #CB4342 #86CB42 #42CACB
square
#8742CB #CB4342 #86CB42 #42CACB
split-complementary
#8742CB #CACB42 #42CB43
monochromatic
#4A2073 #682DA3 #8742CB #A572D8 #C4A2E5

Accessibility & contrast

On white

5.72
#8742CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8742CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742CB
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742CB#FFFFFF#000000##FFFFFF
##8742CB1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#7A6181
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8742cb;
/* rgb */ color: rgb(135, 66, 203);
/* oklch */ color: oklch(53.5% 0.203 303.2);
Tailwind
colors: {
  custom: {
    50: '#af7bdc',
    500: '#8742cb',
    950: '#000000',
  },
}
SCSS
$custom: #8742cb;
$custom-light: #af7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8742cb",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 270.219,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53524,
    "c": 0.20309,
    "h": 303.2
  },
  "luminance": 0.13359
}

Semantic roles & 50–950 ramp

primary
#8742CB
secondary
#B4D297
accent
#E04893
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8742CB

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

Preview Lab → · Contrast checker → · Palette generator →

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