#7865EC#7865EC

#7865EC is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.6% C 0.196 H 285.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7865EC
RGBrgb(120, 101, 236)
HSLhsl(248, 78%, 66%)
HSVhsv(248, 57%, 93%)
CMYKcmyk(49.2%, 57.2%, 0%, 7.5%)
CIE-LABlab(51.10, 41.62, -65.99)
CIE-LCHlch(51.10, 78.02, 302.24°)
OKLaboklab(59.57% 0.0513 -0.1887)
OKLCHoklch(59.57% 0.196 285.2)
XYZxyz(27.5352, 19.3552, 81.6257)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7865EC #D9EC65
analogous
#6595EC #7865EC #BB65EC
triadic
#7865EC #EC7865 #65EC78
tetradic
#7865EC #EC6595 #D9EC65 #65ECBB
square
#7865EC #EC6595 #D9EC65 #65ECBB
split-complementary
#7865EC #ECBB65 #95EC65
monochromatic
#2F18BF #482FE5 #7865EC #A89BF3 #D8D2F9

Accessibility & contrast

On white

4.31
#7865EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7865EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7865EC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7865EC#FFFFFF#000000##000000
##7865EC1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#0076E9
Tritanopia (blue-blind)
#4E849F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7865ec;
/* rgb */ color: rgb(120, 101, 236);
/* oklch */ color: oklch(59.6% 0.196 285.2);
Tailwind
colors: {
  custom: {
    50: '#a791f3',
    500: '#7865ec',
    950: '#000000',
  },
}
SCSS
$custom: #7865ec;
$custom-light: #a791f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7865ec",
  "rgb": {
    "r": 120,
    "g": 101,
    "b": 236
  },
  "hsl": {
    "h": 248.444,
    "s": 78.035,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59565,
    "c": 0.19556,
    "h": 285.2
  },
  "luminance": 0.19357
}

Semantic roles & 50–950 ramp

primary
#7865EC
secondary
#E6EDC0
accent
#DA0BBD
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #7865EC

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

Preview Lab → · Contrast checker → · Palette generator →

#7865EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva