#864CD7#864CD7

#864CD7 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.6% C 0.203 H 298.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#864CD7
RGBrgb(134, 76, 215)
HSLhsl(265, 63%, 57%)
HSVhsv(265, 65%, 84%)
CMYKcmyk(37.7%, 64.7%, 0%, 15.7%)
CIE-LABlab(45.83, 52.47, -62.57)
CIE-LCHlch(45.83, 81.66, 309.98°)
OKLaboklab(55.58% 0.0978 -0.1782)
OKLCHoklch(55.58% 0.203 298.8)
XYZxyz(24.6786, 15.1432, 65.8995)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#864CD7 #9DD74C
analogous
#4C58D7 #864CD7 #CB4CD7
triadic
#864CD7 #D7864C #4CD786
tetradic
#864CD7 #D74C58 #9DD74C #4CD7CB
square
#864CD7 #D74C58 #9DD74C #4CD7CB
split-complementary
#864CD7 #D7CB4C #58D74C
monochromatic
#4B1F8A #672ABC #864CD7 #A87EE2 #CAB0ED

Accessibility & contrast

On white

5.21
#864CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#864CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #864CD7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##864CD7#FFFFFF#000000##FFFFFF
##864CD71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#736C8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #864cd7;
/* rgb */ color: rgb(134, 76, 215);
/* oklch */ color: oklch(55.6% 0.203 298.8);
Tailwind
colors: {
  custom: {
    50: '#af81e4',
    500: '#864cd7',
    950: '#000000',
  },
}
SCSS
$custom: #864cd7;
$custom-light: #af81e4;
$custom-dark: #000000;
JSON
{
  "hex": "#864cd7",
  "rgb": {
    "r": 134,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 265.036,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55582,
    "c": 0.20328,
    "h": 298.8
  },
  "luminance": 0.15144
}

Semantic roles & 50–950 ramp

primary
#864CD7
secondary
#C4DCA3
accent
#E641A2
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #864CD7

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

Preview Lab → · Contrast checker → · Palette generator →

#864CD7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva