#7864CA#7864CA

#7864CA is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.1% C 0.152 H 289.7°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7864CA
RGBrgb(120, 100, 202)
HSLhsl(252, 49%, 59%)
HSVhsv(252, 50%, 79%)
CMYKcmyk(40.6%, 50.5%, 0%, 20.8%)
CIE-LABlab(48.72, 32.42, -50.54)
CIE-LCHlch(48.72, 60.04, 302.68°)
OKLaboklab(57.11% 0.0514 -0.1433)
OKLCHoklch(57.11% 0.152 289.7)
XYZxyz(22.9606, 17.3710, 58.0088)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864CA #B6CA64
analogous
#6483CA #7864CA #AB64CA
triadic
#7864CA #CA7864 #64CA78
tetradic
#7864CA #CA6483 #B6CA64 #64CAAB
square
#7864CA #CA6483 #B6CA64 #64CAAB
split-complementary
#7864CA #CAAB64 #83CA64
monochromatic
#3F2E86 #553DB3 #7864CA #A092DA #C7BFE9

Accessibility & contrast

On white

4.69
#7864CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7864CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7864CA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864CA#FFFFFF#000000##FFFFFF
##7864CA1.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A76CE
Deuteranopia (green-blind)
#3B71C8
Tritanopia (blue-blind)
#61798E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7864ca;
/* rgb */ color: rgb(120, 100, 202);
/* oklch */ color: oklch(57.1% 0.152 289.7);
Tailwind
colors: {
  custom: {
    50: '#a390db',
    500: '#7864ca',
    950: '#000000',
  },
}
SCSS
$custom: #7864ca;
$custom-light: #a390db;
$custom-dark: #000000;
JSON
{
  "hex": "#7864ca",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 202
  },
  "hsl": {
    "h": 251.765,
    "s": 49.038,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57114,
    "c": 0.15221,
    "h": 289.7
  },
  "luminance": 0.17372
}

Semantic roles & 50–950 ramp

primary
#7864CA
secondary
#D1D9B1
accent
#D94FBE
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#0F0C15
muted
#7F7D83

Preview Lab

Preview with #7864CA

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

Preview Lab → · Contrast checker → · Palette generator →

#7864CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva