#7864F2#7864F2

#7864F2 is a mid, highly saturated blue. Relative luminance 0.195; OKLCH L 59.8% C 0.204 H 284.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7864F2
RGBrgb(120, 100, 242)
HSLhsl(248, 85%, 67%)
HSVhsv(248, 59%, 95%)
CMYKcmyk(50.4%, 58.7%, 0%, 5.1%)
CIE-LABlab(51.29, 43.95, -69.05)
CIE-LCHlch(51.29, 81.85, 302.48°)
OKLaboklab(59.83% 0.0522 -0.1977)
OKLCHoklch(59.83% 0.204 284.8)
XYZxyz(28.3251, 19.5168, 86.2618)
Luminance0.1952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864F2 #DEF264
analogous
#6497F2 #7864F2 #BF64F2
triadic
#7864F2 #F27864 #64F278
tetradic
#7864F2 #F26497 #DEF264 #64F2BF
square
#7864F2 #F26497 #DEF264 #64F2BF
split-complementary
#7864F2 #F2BF64 #97F264
monochromatic
#2B11CB #472CED #7864F2 #A99CF7 #DAD5FB

Accessibility & contrast

On white

4.28
#7864F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7864F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7864F2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864F2#FFFFFF#000000##000000
##7864F21.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#0076EF
Tritanopia (blue-blind)
#4985A1
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7864f2;
/* rgb */ color: rgb(120, 100, 242);
/* oklch */ color: oklch(59.8% 0.204 284.8);
Tailwind
colors: {
  custom: {
    50: '#a891f7',
    500: '#7864f2',
    950: '#000000',
  },
}
SCSS
$custom: #7864f2;
$custom-light: #a891f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7864f2",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 242
  },
  "hsl": {
    "h": 248.451,
    "s": 84.524,
    "l": 67.059
  },
  "oklch": {
    "l": 0.59831,
    "c": 0.20448,
    "h": 284.8
  },
  "luminance": 0.19518
}

Semantic roles & 50–950 ramp

primary
#7864F2
secondary
#E9EFC2
accent
#E105C2
background
#FAF8FF
surface
#F5F0FF
border
#CFCBD7
text
#110D17
muted
#807D85

Preview Lab

Preview with #7864F2

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

Preview Lab → · Contrast checker → · Palette generator →

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