#8742BD#8742BD

#8742BD is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.188 H 306.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8742BD
RGBrgb(135, 66, 189)
HSLhsl(274, 48%, 50%)
HSVhsv(274, 65%, 74%)
CMYKcmyk(28.6%, 65.1%, 0%, 25.9%)
CIE-LABlab(42.34, 51.39, -53.17)
CIE-LCHlch(42.34, 73.95, 314.02°)
OKLaboklab(52.53% 0.1127 -0.1505)
OKLCHoklch(52.53% 0.188 306.8)
XYZxyz(21.1233, 12.7217, 49.4770)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742BD #78BD42
analogous
#4A42BD #8742BD #BD42B5
triadic
#8742BD #BD8742 #42BD87
tetradic
#8742BD #BD4A42 #78BD42 #42B5BD
square
#8742BD #BD4A42 #78BD42 #42B5BD
split-complementary
#8742BD #B5BD42 #42BD4A
monochromatic
#462262 #673290 #8742BD #A46FCD #C19DDD

Accessibility & contrast

On white

5.93
#8742BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8742BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742BD
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742BD#FFFFFF#000000##FFFFFF
##8742BD1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#2764BA
Tritanopia (blue-blind)
#7E5C7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8742bd;
/* rgb */ color: rgb(135, 66, 189);
/* oklch */ color: oklch(52.5% 0.188 306.8);
Tailwind
colors: {
  custom: {
    50: '#ae7bd2',
    500: '#8742bd',
    950: '#000000',
  },
}
SCSS
$custom: #8742bd;
$custom-light: #ae7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8742bd",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 273.659,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.52531,
    "c": 0.18801,
    "h": 306.8
  },
  "luminance": 0.12721
}

Semantic roles & 50–950 ramp

primary
#8742BD
secondary
#AAC992
accent
#D8508C
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8742BD

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

Preview Lab → · Contrast checker → · Palette generator →

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