#7864BC#7864BC

#7864BC is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.3% C 0.133 H 292.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7864BC
RGBrgb(120, 100, 188)
HSLhsl(254, 40%, 56%)
HSVhsv(254, 47%, 74%)
CMYKcmyk(36.2%, 46.8%, 0%, 26.3%)
CIE-LABlab(47.93, 28.52, -43.74)
CIE-LCHlch(47.93, 52.22, 303.11°)
OKLaboklab(56.26% 0.0499 -0.1234)
OKLCHoklch(56.26% 0.133 292)
XYZxyz(21.3776, 16.7378, 49.6716)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864BC #A8BC64
analogous
#647CBC #7864BC #A464BC
triadic
#7864BC #BC7864 #64BC78
tetradic
#7864BC #BC647C #A8BC64 #64BCA4
square
#7864BC #BC647C #A8BC64 #64BCA4
split-complementary
#7864BC #BCA464 #7CBC64
monochromatic
#413274 #59449E #7864BC #9D8FCE #C2B9E1

Accessibility & contrast

On white

4.83
#7864BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7864BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7864BC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864BC#FFFFFF#000000##FFFFFF
##7864BC1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4573BF
Deuteranopia (green-blind)
#4870BA
Tritanopia (blue-blind)
#677587
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7864bc;
/* rgb */ color: rgb(120, 100, 188);
/* oklch */ color: oklch(56.3% 0.133 292.0);
Tailwind
colors: {
  custom: {
    50: '#a290d0',
    500: '#7864bc',
    950: '#000000',
  },
}
SCSS
$custom: #7864bc;
$custom-light: #a290d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7864bc",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 188
  },
  "hsl": {
    "h": 253.636,
    "s": 39.64,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56259,
    "c": 0.13307,
    "h": 292
  },
  "luminance": 0.16738
}

Semantic roles & 50–950 ramp

primary
#7864BC
secondary
#C8D0AC
accent
#D058B4
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #7864BC

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

Preview Lab → · Contrast checker → · Palette generator →

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