#7864F6#7864F6

#7864F6 is a mid, highly saturated blue. Relative luminance 0.198; OKLCH L 60.1% C 0.210 H 284.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7864F6
RGBrgb(120, 100, 246)
HSLhsl(248, 89%, 68%)
HSVhsv(248, 59%, 96%)
CMYKcmyk(51.2%, 59.3%, 0%, 3.5%)
CIE-LABlab(51.56, 45.12, -70.83)
CIE-LCHlch(51.56, 83.98, 302.50°)
OKLaboklab(60.12% 0.0521 -0.2029)
OKLCHoklch(60.12% 0.21 284.4)
XYZxyz(28.9324, 19.7597, 89.4604)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864F6 #E2F664
analogous
#6499F6 #7864F6 #C164F6
triadic
#7864F6 #F67864 #64F678
tetradic
#7864F6 #F66499 #E2F664 #64F6C1
square
#7864F6 #F66499 #E2F664 #64F6C1
split-complementary
#7864F6 #F6C164 #99F664
monochromatic
#280CD3 #462AF3 #7864F6 #AA9EF9 #DDD8FD

Accessibility & contrast

On white

4.24
#7864F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#7864F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7864F6
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864F6#FFFFFF#000000##000000
##7864F61.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFB
Deuteranopia (green-blind)
#0076F3
Tritanopia (blue-blind)
#4686A4
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7864f6;
/* rgb */ color: rgb(120, 100, 246);
/* oklch */ color: oklch(60.1% 0.210 284.4);
Tailwind
colors: {
  custom: {
    50: '#a891fa',
    500: '#7864f6',
    950: '#000000',
  },
}
SCSS
$custom: #7864f6;
$custom-light: #a891fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7864f6",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 246
  },
  "hsl": {
    "h": 248.219,
    "s": 89.024,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60123,
    "c": 0.20951,
    "h": 284.4
  },
  "luminance": 0.19761
}

Semantic roles & 50–950 ramp

primary
#7864F6
secondary
#EBF1C4
accent
#E600C6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110D17
muted
#807D85

Preview Lab

Preview with #7864F6

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

Preview Lab → · Contrast checker → · Palette generator →

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