#8742BE#8742BE

#8742BE is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.189 H 306.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8742BE
RGBrgb(135, 66, 190)
HSLhsl(273, 49%, 50%)
HSVhsv(273, 65%, 75%)
CMYKcmyk(28.9%, 65.3%, 0%, 25.5%)
CIE-LABlab(42.41, 51.63, -53.65)
CIE-LCHlch(42.41, 74.45, 313.90°)
OKLaboklab(52.6% 0.1126 -0.1519)
OKLCHoklch(52.6% 0.189 306.5)
XYZxyz(21.2322, 12.7653, 50.0506)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742BE #79BE42
analogous
#4942BE #8742BE #BE42B7
triadic
#8742BE #BE8742 #42BE87
tetradic
#8742BE #BE4942 #79BE42 #42B7BE
square
#8742BE #BE4942 #79BE42 #42B7BE
split-complementary
#8742BE #B7BE42 #42BE49
monochromatic
#462263 #673291 #8742BE #A470CE #C19DDD

Accessibility & contrast

On white

5.91
#8742BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8742BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742BE
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742BE#FFFFFF#000000##FFFFFF
##8742BE1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#2565BB
Tritanopia (blue-blind)
#7E5C7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8742be;
/* rgb */ color: rgb(135, 66, 190);
/* oklch */ color: oklch(52.6% 0.189 306.5);
Tailwind
colors: {
  custom: {
    50: '#ae7bd2',
    500: '#8742be',
    950: '#000000',
  },
}
SCSS
$custom: #8742be;
$custom-light: #ae7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8742be",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 273.387,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.526,
    "c": 0.18909,
    "h": 306.5
  },
  "luminance": 0.12765
}

Semantic roles & 50–950 ramp

primary
#8742BE
secondary
#ABCA92
accent
#D84F8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8742BE

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

Preview Lab → · Contrast checker → · Palette generator →

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