#7874FB#7874FB

#7874FB is a light, vivid blue. Relative luminance 0.234; OKLCH L 63.2% C 0.195 H 280.5°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7874FB
RGBrgb(120, 116, 251)
HSLhsl(242, 94%, 72%)
HSVhsv(242, 54%, 98%)
CMYKcmyk(52.2%, 53.8%, 0%, 1.6%)
CIE-LABlab(55.53, 37.32, -67.19)
CIE-LCHlch(55.53, 76.86, 299.05°)
OKLaboklab(63.16% 0.0358 -0.1921)
OKLCHoklch(63.16% 0.195 280.5)
XYZxyz(31.3983, 23.4470, 94.1193)
Luminance0.2345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7874FB #F7FB74
analogous
#74B4FB #7874FB #BC74FB
triadic
#7874FB #FB7874 #74FB78
tetradic
#7874FB #FB74B4 #F7FB74 #74FBBC
square
#7874FB #FB74B4 #F7FB74 #74FBBC
split-complementary
#7874FB #FBBC74 #B4FB74
monochromatic
#0E07EE #3E39F9 #7874FB #B2AFFD #E2E1FE

Accessibility & contrast

On white

3.69
#7874FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#7874FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7874FB
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7874FB#FFFFFF#000000##000000
##7874FB1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#208AFF
Deuteranopia (green-blind)
#0080F8
Tritanopia (blue-blind)
#3F93AC
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7874fb;
/* rgb */ color: rgb(120, 116, 251);
/* oklch */ color: oklch(63.2% 0.195 280.5);
Tailwind
colors: {
  custom: {
    50: '#a89cfd',
    500: '#7874fb',
    950: '#000000',
  },
}
SCSS
$custom: #7874fb;
$custom-light: #a89cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#7874fb",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 251
  },
  "hsl": {
    "h": 241.778,
    "s": 94.406,
    "l": 71.961
  },
  "oklch": {
    "l": 0.63162,
    "c": 0.19544,
    "h": 280.5
  },
  "luminance": 0.23449
}

Semantic roles & 50–950 ramp

primary
#7874FB
secondary
#F5F6D4
accent
#E600DF
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #7874FB

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

Preview Lab → · Contrast checker → · Palette generator →

#7874FB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva