#7872FA#7872FA

#7872FA is a light, vivid blue. Relative luminance 0.229; OKLCH L 62.7% C 0.197 H 281.1°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7872FA
RGBrgb(120, 114, 250)
HSLhsl(243, 93%, 71%)
HSVhsv(243, 54%, 98%)
CMYKcmyk(52%, 54.4%, 0%, 2%)
CIE-LABlab(55.00, 38.20, -67.50)
CIE-LCHlch(55.00, 77.55, 299.51°)
OKLaboklab(62.75% 0.0378 -0.193)
OKLCHoklch(62.75% 0.197 281.1)
XYZxyz(31.0130, 22.9280, 93.2153)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872FA #F4FA72
analogous
#72B0FA #7872FA #BC72FA
triadic
#7872FA #FA7872 #72FA78
tetradic
#7872FA #FA72B0 #F4FA72 #72FABC
square
#7872FA #FA72B0 #F4FA72 #72FABC
split-complementary
#7872FA #FABC72 #B0FA72
monochromatic
#1208E9 #3F37F8 #7872FA #B1ADFC #E3E1FE

Accessibility & contrast

On white

3.76
#7872FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#7872FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872FA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872FA#FFFFFF#000000##000000
##7872FA1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1989FF
Deuteranopia (green-blind)
#007FF7
Tritanopia (blue-blind)
#4091AB
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7872fa;
/* rgb */ color: rgb(120, 114, 250);
/* oklch */ color: oklch(62.7% 0.197 281.1);
Tailwind
colors: {
  custom: {
    50: '#a89afd',
    500: '#7872fa',
    950: '#000000',
  },
}
SCSS
$custom: #7872fa;
$custom-light: #a89afd;
$custom-dark: #000000;
JSON
{
  "hex": "#7872fa",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 250
  },
  "hsl": {
    "h": 242.647,
    "s": 93.151,
    "l": 71.373
  },
  "oklch": {
    "l": 0.62746,
    "c": 0.19672,
    "h": 281.1
  },
  "luminance": 0.2293
}

Semantic roles & 50–950 ramp

primary
#7872FA
secondary
#F4F6D2
accent
#E600DB
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #7872FA

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

Preview Lab → · Contrast checker → · Palette generator →

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