#8742D8#8742D8

#8742D8 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.5% C 0.217 H 300.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8742D8
RGBrgb(135, 66, 216)
HSLhsl(268, 66%, 55%)
HSVhsv(268, 69%, 85%)
CMYKcmyk(37.5%, 69.4%, 0%, 15.3%)
CIE-LABlab(44.24, 57.82, -65.72)
CIE-LCHlch(44.24, 87.53, 311.34°)
OKLaboklab(54.49% 0.1094 -0.1874)
OKLCHoklch(54.49% 0.217 300.3)
XYZxyz(24.3315, 14.0050, 66.3738)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742D8 #93D842
analogous
#4248D8 #8742D8 #D242D8
triadic
#8742D8 #D88742 #42D887
tetradic
#8742D8 #D84248 #93D842 #42D8D2
square
#8742D8 #D84248 #93D842 #42D8D2
split-complementary
#8742D8 #D8D242 #48D842
monochromatic
#4C1B84 #6926B7 #8742D8 #A775E2 #C7A7ED

Accessibility & contrast

On white

5.52
#8742D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8742D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742D8
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742D8#FFFFFF#000000##FFFFFF
##8742D81.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#756688
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8742d8;
/* rgb */ color: rgb(135, 66, 216);
/* oklch */ color: oklch(54.5% 0.217 300.3);
Tailwind
colors: {
  custom: {
    50: '#b07ce5',
    500: '#8742d8',
    950: '#000000',
  },
}
SCSS
$custom: #8742d8;
$custom-light: #b07ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#8742d8",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 267.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54491,
    "c": 0.21699,
    "h": 300.3
  },
  "luminance": 0.14005
}

Semantic roles & 50–950 ramp

primary
#8742D8
secondary
#BDDA9C
accent
#E93F9B
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8742D8

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

Preview Lab → · Contrast checker → · Palette generator →

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