#8742BB#8742BB

#8742BB is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.186 H 307.4°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8742BB
RGBrgb(135, 66, 187)
HSLhsl(274, 48%, 50%)
HSVhsv(274, 65%, 73%)
CMYKcmyk(27.8%, 64.7%, 0%, 26.7%)
CIE-LABlab(42.21, 50.93, -52.22)
CIE-LCHlch(42.21, 72.94, 314.29°)
OKLaboklab(52.39% 0.1128 -0.1477)
OKLCHoklch(52.39% 0.186 307.4)
XYZxyz(20.9077, 12.6354, 48.3415)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742BB #76BB42
analogous
#4B42BB #8742BB #BB42B3
triadic
#8742BB #BB8742 #42BB87
tetradic
#8742BB #BB4B42 #76BB42 #42B3BB
square
#8742BB #BB4B42 #76BB42 #42B3BB
split-complementary
#8742BB #B3BB42 #42BB4B
monochromatic
#462261 #66328E #8742BB #A46ECC #C09CDC

Accessibility & contrast

On white

5.95
#8742BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8742BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742BB
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742BB#FFFFFF#000000##FFFFFF
##8742BB1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2964B8
Tritanopia (blue-blind)
#7F5B79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8742bb;
/* rgb */ color: rgb(135, 66, 187);
/* oklch */ color: oklch(52.4% 0.186 307.4);
Tailwind
colors: {
  custom: {
    50: '#ae7bd0',
    500: '#8742bb',
    950: '#000000',
  },
}
SCSS
$custom: #8742bb;
$custom-light: #ae7bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8742bb",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 274.215,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52394,
    "c": 0.18585,
    "h": 307.4
  },
  "luminance": 0.12635
}

Semantic roles & 50–950 ramp

primary
#8742BB
secondary
#A9C891
accent
#D7508A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8742BB

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

Preview Lab → · Contrast checker → · Palette generator →

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