#8742D7#8742D7

#8742D7 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.216 H 300.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8742D7
RGBrgb(135, 66, 215)
HSLhsl(268, 65%, 55%)
HSVhsv(268, 69%, 84%)
CMYKcmyk(37.2%, 69.3%, 0%, 15.7%)
CIE-LABlab(44.17, 57.58, -65.27)
CIE-LCHlch(44.17, 87.03, 311.42°)
OKLaboklab(54.42% 0.1096 -0.1861)
OKLCHoklch(54.42% 0.216 300.5)
XYZxyz(24.2026, 13.9534, 65.6950)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742D7 #92D742
analogous
#4247D7 #8742D7 #D142D7
triadic
#8742D7 #D78742 #42D787
tetradic
#8742D7 #D74247 #92D742 #42D7D1
square
#8742D7 #D74247 #92D742 #42D7D1
split-complementary
#8742D7 #D7D142 #47D742
monochromatic
#4B1C83 #6926B5 #8742D7 #A775E2 #C7A7EC

Accessibility & contrast

On white

5.54
#8742D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8742D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742D7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742D7#FFFFFF#000000##FFFFFF
##8742D71.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#0067D4
Tritanopia (blue-blind)
#756688
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8742d7;
/* rgb */ color: rgb(135, 66, 215);
/* oklch */ color: oklch(54.4% 0.216 300.5);
Tailwind
colors: {
  custom: {
    50: '#b07ce4',
    500: '#8742d7',
    950: '#000000',
  },
}
SCSS
$custom: #8742d7;
$custom-light: #b07ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#8742d7",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 267.785,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54415,
    "c": 0.21593,
    "h": 300.5
  },
  "luminance": 0.13954
}

Semantic roles & 50–950 ramp

primary
#8742D7
secondary
#BDDA9B
accent
#E8409A
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8742D7

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

Preview Lab → · Contrast checker → · Palette generator →

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