#8742BC#8742BC

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

Color values

HEX#8742BC
RGBrgb(135, 66, 188)
HSLhsl(274, 48%, 50%)
HSVhsv(274, 65%, 74%)
CMYKcmyk(28.2%, 64.9%, 0%, 26.3%)
CIE-LABlab(42.27, 51.16, -52.69)
CIE-LCHlch(42.27, 73.44, 314.15°)
OKLaboklab(52.46% 0.1127 -0.1491)
OKLCHoklch(52.46% 0.187 307.1)
XYZxyz(21.0151, 12.6784, 48.9073)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742BC #77BC42
analogous
#4A42BC #8742BC #BC42B4
triadic
#8742BC #BC8742 #42BC87
tetradic
#8742BC #BC4A42 #77BC42 #42B4BC
square
#8742BC #BC4A42 #77BC42 #42B4BC
split-complementary
#8742BC #B4BC42 #42BC4A
monochromatic
#462261 #66328F #8742BC #A46FCC #C09CDC

Accessibility & contrast

On white

5.94
#8742BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8742BC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742BC#FFFFFF#000000##FFFFFF
##8742BC1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#2864B9
Tritanopia (blue-blind)
#7E5C79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8742bc;
/* rgb */ color: rgb(135, 66, 188);
/* oklch */ color: oklch(52.5% 0.187 307.1);
Tailwind
colors: {
  custom: {
    50: '#ae7bd1',
    500: '#8742bc',
    950: '#000000',
  },
}
SCSS
$custom: #8742bc;
$custom-light: #ae7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8742bc",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 273.934,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52462,
    "c": 0.18693,
    "h": 307.1
  },
  "luminance": 0.12678
}

Semantic roles & 50–950 ramp

primary
#8742BC
secondary
#A9C991
accent
#D8508B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8742BC

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

Preview Lab → · Contrast checker → · Palette generator →

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