#7864F8#7864F8

#7864F8 is a mid, highly saturated blue. Relative luminance 0.199; OKLCH L 60.3% C 0.212 H 284.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7864F8
RGBrgb(120, 100, 248)
HSLhsl(248, 91%, 68%)
HSVhsv(248, 60%, 97%)
CMYKcmyk(51.6%, 59.7%, 0%, 2.7%)
CIE-LABlab(51.70, 45.71, -71.72)
CIE-LCHlch(51.70, 85.04, 302.51°)
OKLaboklab(60.27% 0.052 -0.2055)
OKLCHoklch(60.27% 0.212 284.2)
XYZxyz(29.2411, 19.8831, 91.0858)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864F8 #E4F864
analogous
#649AF8 #7864F8 #C264F8
triadic
#7864F8 #F87864 #64F878
tetradic
#7864F8 #F8649A #E4F864 #64F8C2
square
#7864F8 #F8649A #E4F864 #64F8C2
split-complementary
#7864F8 #F8C264 #9AF864
monochromatic
#260AD8 #4529F5 #7864F8 #AB9FFB #DED9FD

Accessibility & contrast

On white

4.22
#7864F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7864F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7864F8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864F8#FFFFFF#000000##000000
##7864F81.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FD
Deuteranopia (green-blind)
#0076F5
Tritanopia (blue-blind)
#4487A5
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7864f8;
/* rgb */ color: rgb(120, 100, 248);
/* oklch */ color: oklch(60.3% 0.212 284.2);
Tailwind
colors: {
  custom: {
    50: '#a891fb',
    500: '#7864f8',
    950: '#000000',
  },
}
SCSS
$custom: #7864f8;
$custom-light: #a891fb;
$custom-dark: #000000;
JSON
{
  "hex": "#7864f8",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 248
  },
  "hsl": {
    "h": 248.108,
    "s": 91.358,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6027,
    "c": 0.21201,
    "h": 284.2
  },
  "luminance": 0.19885
}

Semantic roles & 50–950 ramp

primary
#7864F8
secondary
#ECF2C5
accent
#E600C6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110D18
muted
#807D86

Preview Lab

Preview with #7864F8

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

Preview Lab → · Contrast checker → · Palette generator →

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