#8742BF#8742BF

#8742BF is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.190 H 306.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8742BF
RGBrgb(135, 66, 191)
HSLhsl(273, 49%, 50%)
HSVhsv(273, 65%, 75%)
CMYKcmyk(29.3%, 65.4%, 0%, 25.1%)
CIE-LABlab(42.47, 51.86, -54.13)
CIE-LCHlch(42.47, 74.96, 313.77°)
OKLaboklab(52.67% 0.1125 -0.1533)
OKLCHoklch(52.67% 0.19 306.3)
XYZxyz(21.3418, 12.8091, 50.6282)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8742BF #7ABF42
analogous
#4842BF #8742BF #BF42B8
triadic
#8742BF #BF8742 #42BF87
tetradic
#8742BF #BF4842 #7ABF42 #42B8BF
square
#8742BF #BF4842 #7ABF42 #42B8BF
split-complementary
#8742BF #B8BF42 #42BF48
monochromatic
#472265 #673292 #8742BF #A470CE #C19DDE

Accessibility & contrast

On white

5.90
#8742BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8742BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8742BF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8742BF#FFFFFF#000000##FFFFFF
##8742BF1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2365BC
Tritanopia (blue-blind)
#7E5D7B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8742bf;
/* rgb */ color: rgb(135, 66, 191);
/* oklch */ color: oklch(52.7% 0.190 306.3);
Tailwind
colors: {
  custom: {
    50: '#ae7bd3',
    500: '#8742bf',
    950: '#000000',
  },
}
SCSS
$custom: #8742bf;
$custom-light: #ae7bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8742bf",
  "rgb": {
    "r": 135,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 273.12,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52669,
    "c": 0.19016,
    "h": 306.3
  },
  "luminance": 0.12809
}

Semantic roles & 50–950 ramp

primary
#8742BF
secondary
#ACCA93
accent
#D94F8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8742BF

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

Preview Lab → · Contrast checker → · Palette generator →

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