#7872F7#7872F7

#7872F7 is a light, vivid blue. Relative luminance 0.227; OKLCH L 62.5% C 0.193 H 281.3°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7872F7
RGBrgb(120, 114, 247)
HSLhsl(243, 89%, 71%)
HSVhsv(243, 54%, 97%)
CMYKcmyk(51.4%, 53.8%, 0%, 3.1%)
CIE-LABlab(54.80, 37.29, -66.14)
CIE-LCHlch(54.80, 75.93, 299.42°)
OKLaboklab(62.54% 0.0377 -0.1891)
OKLCHoklch(62.54% 0.193 281.3)
XYZxyz(30.5464, 22.7413, 90.7576)
Luminance0.2274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872F7 #F1F772
analogous
#72AEF7 #7872F7 #BA72F7
triadic
#7872F7 #F77872 #72F778
tetradic
#7872F7 #F772AE #F1F772 #72F7BA
square
#7872F7 #F772AE #F1F772 #72F7BA
split-complementary
#7872F7 #F7BA72 #AEF772
monochromatic
#160DE2 #4138F4 #7872F7 #AFACFA #E3E2FD

Accessibility & contrast

On white

3.78
#7872F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7872F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872F7
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872F7#FFFFFF#000000##000000
##7872F71.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2188FC
Deuteranopia (green-blind)
#067EF4
Tritanopia (blue-blind)
#4390AA
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7872f7;
/* rgb */ color: rgb(120, 114, 247);
/* oklch */ color: oklch(62.5% 0.193 281.3);
Tailwind
colors: {
  custom: {
    50: '#a79afb',
    500: '#7872f7',
    950: '#000000',
  },
}
SCSS
$custom: #7872f7;
$custom-light: #a79afb;
$custom-dark: #000000;
JSON
{
  "hex": "#7872f7",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 247
  },
  "hsl": {
    "h": 242.707,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.62541,
    "c": 0.1928,
    "h": 281.3
  },
  "luminance": 0.22743
}

Semantic roles & 50–950 ramp

primary
#7872F7
secondary
#F3F4D1
accent
#E600DB
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7872F7

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

Preview Lab → · Contrast checker → · Palette generator →

#7872F7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva