#7872F2#7872F2

#7872F2 is a light, vivid blue. Relative luminance 0.224; OKLCH L 62.2% C 0.186 H 281.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7872F2
RGBrgb(120, 114, 242)
HSLhsl(243, 83%, 70%)
HSVhsv(243, 53%, 95%)
CMYKcmyk(50.4%, 52.9%, 0%, 5.1%)
CIE-LABlab(54.49, 35.79, -63.88)
CIE-LCHlch(54.49, 73.22, 299.26°)
OKLaboklab(62.2% 0.0375 -0.1824)
OKLCHoklch(62.2% 0.186 281.6)
XYZxyz(29.7852, 22.4368, 86.7485)
Luminance0.2244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872F2 #ECF272
analogous
#72ACF2 #7872F2 #B872F2
triadic
#7872F2 #F27872 #72F278
tetradic
#7872F2 #F272AC #ECF272 #72F2B8
square
#7872F2 #F272AC #ECF272 #72F2B8
split-complementary
#7872F2 #F2B872 #ACF272
monochromatic
#1D14D6 #423AED #7872F2 #AEAAF7 #E3E2FC

Accessibility & contrast

On white

3.83
#7872F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7872F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872F2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872F2#FFFFFF#000000##000000
##7872F21.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B87F6
Deuteranopia (green-blind)
#1C7EEF
Tritanopia (blue-blind)
#488FA7
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7872f2;
/* rgb */ color: rgb(120, 114, 242);
/* oklch */ color: oklch(62.2% 0.186 281.6);
Tailwind
colors: {
  custom: {
    50: '#a79af7',
    500: '#7872f2',
    950: '#000000',
  },
}
SCSS
$custom: #7872f2;
$custom-light: #a79af7;
$custom-dark: #000000;
JSON
{
  "hex": "#7872f2",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 242.813,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.62202,
    "c": 0.18623,
    "h": 281.6
  },
  "luminance": 0.22439
}

Semantic roles & 50–950 ramp

primary
#7872F2
secondary
#F0F2CE
accent
#E006D5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7872F2

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

Preview Lab → · Contrast checker → · Palette generator →

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