#8642CB#8642CB

#8642CB is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.4% C 0.203 H 302.8°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8642CB
RGBrgb(134, 66, 203)
HSLhsl(270, 57%, 53%)
HSVhsv(270, 67%, 80%)
CMYKcmyk(34%, 67.5%, 0%, 20.4%)
CIE-LABlab(43.18, 54.49, -59.97)
CIE-LCHlch(43.18, 81.03, 312.26°)
OKLaboklab(53.41% 0.1099 -0.1705)
OKLCHoklch(53.41% 0.203 302.8)
XYZxyz(22.5567, 13.2765, 57.8626)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8642CB #87CB42
analogous
#4243CB #8642CB #CA42CB
triadic
#8642CB #CB8642 #42CB86
tetradic
#8642CB #CB4243 #87CB42 #42CBCA
square
#8642CB #CB4243 #87CB42 #42CBCA
split-complementary
#8642CB #CBCA42 #43CB42
monochromatic
#492073 #672DA3 #8642CB #A572D8 #C3A2E5

Accessibility & contrast

On white

5.74
#8642CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8642CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8642CB
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8642CB#FFFFFF#000000##FFFFFF
##8642CB1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#786181
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8642cb;
/* rgb */ color: rgb(134, 66, 203);
/* oklch */ color: oklch(53.4% 0.203 302.8);
Tailwind
colors: {
  custom: {
    50: '#ae7bdc',
    500: '#8642cb',
    950: '#000000',
  },
}
SCSS
$custom: #8642cb;
$custom-light: #ae7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8642cb",
  "rgb": {
    "r": 134,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 269.781,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53409,
    "c": 0.20288,
    "h": 302.8
  },
  "luminance": 0.13277
}

Semantic roles & 50–950 ramp

primary
#8642CB
secondary
#B5D297
accent
#E04894
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8642CB

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

Preview Lab → · Contrast checker → · Palette generator →

#8642CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva