#8742B2#8742B2

#8742B2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.176 H 310.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8742B2
RGBrgb(135, 66, 178)
HSLhsl(277, 46%, 48%)
HSVhsv(277, 63%, 70%)
CMYKcmyk(24.2%, 62.9%, 0%, 30.2%)
CIE-LABlab(41.63, 48.86, -47.86)
CIE-LCHlch(41.63, 68.39, 315.60°)
OKLaboklab(51.79% 0.1133 -0.1349)
OKLCHoklch(51.79% 0.176 310)
XYZxyz(19.9742, 12.2621, 43.4254)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742B2 #6DB242
analogous
#4F42B2 #8742B2 #B242A5
triadic
#8742B2 #B28742 #42B287
tetradic
#8742B2 #B24F42 #6DB242 #42A5B2
square
#8742B2 #B24F42 #6DB242 #42A5B2
split-complementary
#8742B2 #A5B242 #42B24F
monochromatic
#432159 #653185 #8742B2 #A46AC8 #BF96D8

Accessibility & contrast

On white

6.08
#8742B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8742B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742B2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742B2#FFFFFF#000000##FFFFFF
##8742B21.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5FB5
Deuteranopia (green-blind)
#3463AF
Tritanopia (blue-blind)
#815874
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8742b2;
/* rgb */ color: rgb(135, 66, 178);
/* oklch */ color: oklch(51.8% 0.176 310.0);
Tailwind
colors: {
  custom: {
    50: '#ad7aca',
    500: '#8742b2',
    950: '#000000',
  },
}
SCSS
$custom: #8742b2;
$custom-light: #ad7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8742b2",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 276.964,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5179,
    "c": 0.17616,
    "h": 310
  },
  "luminance": 0.12262
}

Semantic roles & 50–950 ramp

primary
#8742B2
secondary
#A1C48C
accent
#D65285
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8742B2

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

Preview Lab → · Contrast checker → · Palette generator →

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