#8742D2#8742D2

#8742D2 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.211 H 301.6°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8742D2
RGBrgb(135, 66, 210)
HSLhsl(269, 62%, 54%)
HSVhsv(269, 69%, 82%)
CMYKcmyk(35.7%, 68.6%, 0%, 17.6%)
CIE-LABlab(43.80, 56.37, -62.99)
CIE-LCHlch(43.80, 84.53, 311.83°)
OKLaboklab(54.04% 0.1103 -0.1794)
OKLCHoklch(54.04% 0.211 301.6)
XYZxyz(23.5700, 13.7004, 62.3630)
Luminance0.1370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742D2 #8DD242
analogous
#4245D2 #8742D2 #CF42D2
triadic
#8742D2 #D28742 #42D287
tetradic
#8742D2 #D24245 #8DD242 #42D2CF
square
#8742D2 #D24245 #8DD242 #42D2CF
split-complementary
#8742D2 #D2CF42 #45D242
monochromatic
#4B1E7C #6929AD #8742D2 #A673DE #C6A5EA

Accessibility & contrast

On white

5.61
#8742D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8742D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742D2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742D2#FFFFFF#000000##FFFFFF
##8742D21.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#776485
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8742d2;
/* rgb */ color: rgb(135, 66, 210);
/* oklch */ color: oklch(54.0% 0.211 301.6);
Tailwind
colors: {
  custom: {
    50: '#b07be1',
    500: '#8742d2',
    950: '#000000',
  },
}
SCSS
$custom: #8742d2;
$custom-light: #b07be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8742d2",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 268.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54039,
    "c": 0.21059,
    "h": 301.6
  },
  "luminance": 0.137
}

Semantic roles & 50–950 ramp

primary
#8742D2
secondary
#B9D799
accent
#E54397
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8742D2

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

Preview Lab → · Contrast checker → · Palette generator →

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