#7864F5#7864F5

#7864F5 is a mid, highly saturated blue. Relative luminance 0.197; OKLCH L 60.1% C 0.208 H 284.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7864F5
RGBrgb(120, 100, 245)
HSLhsl(248, 88%, 68%)
HSVhsv(248, 59%, 96%)
CMYKcmyk(51%, 59.2%, 0%, 3.9%)
CIE-LABlab(51.49, 44.83, -70.39)
CIE-LCHlch(51.49, 83.45, 302.49°)
OKLaboklab(60.05% 0.0521 -0.2016)
OKLCHoklch(60.05% 0.208 284.5)
XYZxyz(28.7794, 19.6985, 88.6542)
Luminance0.1970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864F5 #E1F564
analogous
#6498F5 #7864F5 #C164F5
triadic
#7864F5 #F57864 #64F578
tetradic
#7864F5 #F56498 #E1F564 #64F5C1
square
#7864F5 #F56498 #E1F564 #64F5C1
split-complementary
#7864F5 #F5C164 #98F564
monochromatic
#280DD1 #462BF1 #7864F5 #AA9DF9 #DCD7FC

Accessibility & contrast

On white

4.25
#7864F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7864F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7864F5
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864F5#FFFFFF#000000##000000
##7864F51.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFA
Deuteranopia (green-blind)
#0076F2
Tritanopia (blue-blind)
#4786A3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7864f5;
/* rgb */ color: rgb(120, 100, 245);
/* oklch */ color: oklch(60.1% 0.208 284.5);
Tailwind
colors: {
  custom: {
    50: '#a891f9',
    500: '#7864f5',
    950: '#000000',
  },
}
SCSS
$custom: #7864f5;
$custom-light: #a891f9;
$custom-dark: #000000;
JSON
{
  "hex": "#7864f5",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 245
  },
  "hsl": {
    "h": 248.276,
    "s": 87.879,
    "l": 67.647
  },
  "oklch": {
    "l": 0.6005,
    "c": 0.20825,
    "h": 284.5
  },
  "luminance": 0.197
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7864F5

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

Preview Lab → · Contrast checker → · Palette generator →

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