#7872FC#7872FC

#7872FC is a light, vivid blue. Relative luminance 0.231; OKLCH L 62.9% C 0.199 H 281.0°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7872FC
RGBrgb(120, 114, 252)
HSLhsl(243, 96%, 72%)
HSVhsv(243, 55%, 99%)
CMYKcmyk(52.4%, 54.8%, 0%, 1.2%)
CIE-LABlab(55.13, 38.80, -68.39)
CIE-LCHlch(55.13, 78.63, 299.57°)
OKLaboklab(62.88% 0.0379 -0.1957)
OKLCHoklch(62.88% 0.199 281)
XYZxyz(31.3283, 23.0541, 94.8757)
Luminance0.2306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872FC #F6FC72
analogous
#72B1FC #7872FC #BD72FC
triadic
#7872FC #FC7872 #72FC78
tetradic
#7872FC #FC72B1 #F6FC72 #72FCBD
square
#7872FC #FC72B1 #F6FC72 #72FCBD
split-complementary
#7872FC #FCBD72 #B1FC72
monochromatic
#0F05EF #3F36FB #7872FC #B1AEFD #E2E1FE

Accessibility & contrast

On white

3.74
#7872FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#7872FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872FC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872FC#FFFFFF#000000##000000
##7872FC1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1389FF
Deuteranopia (green-blind)
#007FF9
Tritanopia (blue-blind)
#3E92AC
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7872fc;
/* rgb */ color: rgb(120, 114, 252);
/* oklch */ color: oklch(62.9% 0.199 281.0);
Tailwind
colors: {
  custom: {
    50: '#a89afe',
    500: '#7872fc',
    950: '#000000',
  },
}
SCSS
$custom: #7872fc;
$custom-light: #a89afe;
$custom-dark: #000000;
JSON
{
  "hex": "#7872fc",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 252
  },
  "hsl": {
    "h": 242.609,
    "s": 95.833,
    "l": 71.765
  },
  "oklch": {
    "l": 0.62884,
    "c": 0.19931,
    "h": 281
  },
  "luminance": 0.23056
}

Semantic roles & 50–950 ramp

primary
#7872FC
secondary
#F5F6D3
accent
#E600DC
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #7872FC

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

Preview Lab → · Contrast checker → · Palette generator →

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