#8742BA#8742BA

#8742BA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.185 H 307.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8742BA
RGBrgb(135, 66, 186)
HSLhsl(275, 48%, 49%)
HSVhsv(275, 65%, 73%)
CMYKcmyk(27.4%, 64.5%, 0%, 27.1%)
CIE-LABlab(42.14, 50.70, -51.73)
CIE-LCHlch(42.14, 72.43, 314.42°)
OKLaboklab(52.33% 0.1129 -0.1463)
OKLCHoklch(52.33% 0.185 307.7)
XYZxyz(20.8010, 12.5928, 47.7797)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742BA #75BA42
analogous
#4B42BA #8742BA #BA42B1
triadic
#8742BA #BA8742 #42BA87
tetradic
#8742BA #BA4B42 #75BA42 #42B1BA
square
#8742BA #BA4B42 #75BA42 #42B1BA
split-complementary
#8742BA #B1BA42 #42BA4B
monochromatic
#452260 #66328D #8742BA #A46ECB #C09BDB

Accessibility & contrast

On white

5.97
#8742BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8742BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742BA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742BA#FFFFFF#000000##FFFFFF
##8742BA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2B64B7
Tritanopia (blue-blind)
#7F5B78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8742ba;
/* rgb */ color: rgb(135, 66, 186);
/* oklch */ color: oklch(52.3% 0.185 307.7);
Tailwind
colors: {
  custom: {
    50: '#ae7bcf',
    500: '#8742ba',
    950: '#000000',
  },
}
SCSS
$custom: #8742ba;
$custom-light: #ae7bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8742ba",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 274.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52325,
    "c": 0.18478,
    "h": 307.7
  },
  "luminance": 0.12592
}

Semantic roles & 50–950 ramp

primary
#8742BA
secondary
#A8C890
accent
#D7518A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8742BA

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

Preview Lab → · Contrast checker → · Palette generator →

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