#7865F2#7865F2

#7865F2 is a mid, highly saturated blue. Relative luminance 0.197; OKLCH L 60.0% C 0.203 H 284.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7865F2
RGBrgb(120, 101, 242)
HSLhsl(248, 84%, 67%)
HSVhsv(248, 58%, 95%)
CMYKcmyk(50.4%, 58.3%, 0%, 5.1%)
CIE-LABlab(51.51, 43.37, -68.69)
CIE-LCHlch(51.51, 81.24, 302.27°)
OKLaboklab(59.99% 0.0512 -0.1966)
OKLCHoklch(59.99% 0.203 284.6)
XYZxyz(28.4216, 19.7098, 86.2940)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7865F2 #DFF265
analogous
#6599F2 #7865F2 #BE65F2
triadic
#7865F2 #F27865 #65F278
tetradic
#7865F2 #F26599 #DFF265 #65F2BE
square
#7865F2 #F26599 #DFF265 #65F2BE
split-complementary
#7865F2 #F2BE65 #99F265
monochromatic
#2A11CB #472DED #7865F2 #A99DF7 #DBD6FC

Accessibility & contrast

On white

4.25
#7865F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7865F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7865F2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7865F2#FFFFFF#000000##000000
##7865F21.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)
#007FF7
Deuteranopia (green-blind)
#0076EF
Tritanopia (blue-blind)
#4986A2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7865f2;
/* rgb */ color: rgb(120, 101, 242);
/* oklch */ color: oklch(60.0% 0.203 284.6);
Tailwind
colors: {
  custom: {
    50: '#a891f7',
    500: '#7865f2',
    950: '#000000',
  },
}
SCSS
$custom: #7865f2;
$custom-light: #a891f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7865f2",
  "rgb": {
    "r": 120,
    "g": 101,
    "b": 242
  },
  "hsl": {
    "h": 248.085,
    "s": 84.431,
    "l": 67.255
  },
  "oklch": {
    "l": 0.59994,
    "c": 0.20319,
    "h": 284.6
  },
  "luminance": 0.19711
}

Semantic roles & 50–950 ramp

primary
#7865F2
secondary
#EAF0C3
accent
#E105C3
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #7865F2

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

Preview Lab → · Contrast checker → · Palette generator →

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