#7872FE#7872FE

#7872FE is a light, highly saturated blue. Relative luminance 0.232; OKLCH L 63.0% C 0.202 H 280.8°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#7872FE
RGBrgb(120, 114, 254)
HSLhsl(243, 99%, 72%)
HSVhsv(243, 55%, 100%)
CMYKcmyk(52.8%, 55.1%, 0%, 0.4%)
CIE-LABlab(55.26, 39.40, -69.29)
CIE-LCHlch(55.26, 79.71, 299.63°)
OKLaboklab(63.02% 0.0379 -0.1983)
OKLCHoklch(63.02% 0.202 280.8)
XYZxyz(31.6469, 23.1815, 96.5536)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872FE #F8FE72
analogous
#72B2FE #7872FE #BE72FE
triadic
#7872FE #FE7872 #72FE78
tetradic
#7872FE #FE72B2 #F8FE72 #72FEBE
square
#7872FE #FE72B2 #F8FE72 #72FEBE
split-complementary
#7872FE #FEBE72 #B2FE72
monochromatic
#0C02F4 #3E35FE #7872FE #B2AFFE #E2E1FF

Accessibility & contrast

On white

3.73
#7872FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#7872FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872FE
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872FE#FFFFFF#000000##000000
##7872FE1.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0989FF
Deuteranopia (green-blind)
#007FFB
Tritanopia (blue-blind)
#3C92AD
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7872fe;
/* rgb */ color: rgb(120, 114, 254);
/* oklch */ color: oklch(63.0% 0.202 280.8);
Tailwind
colors: {
  custom: {
    50: '#a89bff',
    500: '#7872fe',
    950: '#000000',
  },
}
SCSS
$custom: #7872fe;
$custom-light: #a89bff;
$custom-dark: #000000;
JSON
{
  "hex": "#7872fe",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 254
  },
  "hsl": {
    "h": 242.571,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.63023,
    "c": 0.2019,
    "h": 280.8
  },
  "luminance": 0.23183
}

Semantic roles & 50–950 ramp

primary
#7872FE
secondary
#F6F7D4
accent
#E600DC
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #7872FE

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

Preview Lab → · Contrast checker → · Palette generator →

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