#8642D2#8642D2

#8642D2 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.210 H 301.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8642D2
RGBrgb(134, 66, 210)
HSLhsl(268, 62%, 54%)
HSVhsv(268, 69%, 82%)
CMYKcmyk(36.2%, 68.6%, 0%, 17.6%)
CIE-LABlab(43.68, 56.18, -63.19)
CIE-LCHlch(43.68, 84.55, 311.64°)
OKLaboklab(53.93% 0.109 -0.18)
OKLCHoklch(53.93% 0.21 301.2)
XYZxyz(23.4098, 13.6178, 62.3554)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8642D2 #8ED242
analogous
#4246D2 #8642D2 #CE42D2
triadic
#8642D2 #D28642 #42D286
tetradic
#8642D2 #D24246 #8ED242 #42D2CE
square
#8642D2 #D24246 #8ED242 #42D2CE
split-complementary
#8642D2 #D2CE42 #46D242
monochromatic
#4A1E7C #6829AD #8642D2 #A673DE #C5A5EA

Accessibility & contrast

On white

5.64
#8642D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8642D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8642D2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8642D2#FFFFFF#000000##FFFFFF
##8642D21.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#766485
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8642d2;
/* rgb */ color: rgb(134, 66, 210);
/* oklch */ color: oklch(53.9% 0.210 301.2);
Tailwind
colors: {
  custom: {
    50: '#af7be1',
    500: '#8642d2',
    950: '#000000',
  },
}
SCSS
$custom: #8642d2;
$custom-light: #af7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8642d2",
  "rgb": {
    "r": 134,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 268.333,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53927,
    "c": 0.21041,
    "h": 301.2
  },
  "luminance": 0.13618
}

Semantic roles & 50–950 ramp

primary
#8642D2
secondary
#BAD799
accent
#E54398
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8642D2

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

Preview Lab → · Contrast checker → · Palette generator →

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