#8640D4#8640D4

#8640D4 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.215 H 301.0°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8640D4
RGBrgb(134, 64, 212)
HSLhsl(268, 63%, 54%)
HSVhsv(268, 70%, 83%)
CMYKcmyk(36.8%, 69.8%, 0%, 16.9%)
CIE-LABlab(43.49, 57.60, -64.65)
CIE-LCHlch(43.49, 86.59, 311.70°)
OKLaboklab(53.84% 0.1107 -0.1843)
OKLCHoklch(53.84% 0.215 301)
XYZxyz(23.5457, 13.4884, 63.6376)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8640D4 #8ED440
analogous
#4044D4 #8640D4 #D040D4
triadic
#8640D4 #D48640 #40D486
tetradic
#8640D4 #D44044 #8ED440 #40D4D0
square
#8640D4 #D44044 #8ED440 #40D4D0
split-complementary
#8640D4 #D4D040 #44D440
monochromatic
#4A1C7D #6827AF #8640D4 #A672DF #C5A4EA

Accessibility & contrast

On white

5.68
#8640D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8640D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8640D4
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8640D4#FFFFFF#000000##FFFFFF
##8640D41.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0066D1
Tritanopia (blue-blind)
#756486
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8640d4;
/* rgb */ color: rgb(134, 64, 212);
/* oklch */ color: oklch(53.8% 0.215 301.0);
Tailwind
colors: {
  custom: {
    50: '#af7ae2',
    500: '#8640d4',
    950: '#000000',
  },
}
SCSS
$custom: #8640d4;
$custom-light: #af7ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#8640d4",
  "rgb": {
    "r": 134,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 268.378,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53838,
    "c": 0.21495,
    "h": 301
  },
  "luminance": 0.13489
}

Semantic roles & 50–950 ramp

primary
#8640D4
secondary
#BAD798
accent
#E64298
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8640D4

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

Preview Lab → · Contrast checker → · Palette generator →

#8640D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva