#7874EF#7874EF

#7874EF is a light, vivid blue. Relative luminance 0.227; OKLCH L 62.4% C 0.180 H 281.3°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7874EF
RGBrgb(120, 116, 239)
HSLhsl(242, 79%, 70%)
HSVhsv(242, 51%, 94%)
CMYKcmyk(49.8%, 51.5%, 0%, 6.3%)
CIE-LABlab(54.78, 33.71, -61.74)
CIE-LCHlch(54.78, 70.35, 298.63°)
OKLaboklab(62.36% 0.0352 -0.1761)
OKLCHoklch(62.36% 0.18 281.3)
XYZxyz(29.5664, 22.7142, 84.4710)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7874EF #EBEF74
analogous
#74AEEF #7874EF #B574EF
triadic
#7874EF #EF7874 #74EF78
tetradic
#7874EF #EF74AE #EBEF74 #74EFB5
square
#7874EF #EF74AE #EBEF74 #74EFB5
split-complementary
#7874EF #EFB574 #AEEF74
monochromatic
#1E18D1 #433DE9 #7874EF #ADABF5 #E3E2FC

Accessibility & contrast

On white

3.79
#7874EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7874EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7874EF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7874EF#FFFFFF#000000##000000
##7874EF1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3588F3
Deuteranopia (green-blind)
#297FEC
Tritanopia (blue-blind)
#4A8FA7
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7874ef;
/* rgb */ color: rgb(120, 116, 239);
/* oklch */ color: oklch(62.4% 0.180 281.3);
Tailwind
colors: {
  custom: {
    50: '#a69cf5',
    500: '#7874ef',
    950: '#000000',
  },
}
SCSS
$custom: #7874ef;
$custom-light: #a69cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#7874ef",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 239
  },
  "hsl": {
    "h": 241.951,
    "s": 79.355,
    "l": 69.608
  },
  "oklch": {
    "l": 0.62359,
    "c": 0.17959,
    "h": 281.3
  },
  "luminance": 0.22716
}

Semantic roles & 50–950 ramp

primary
#7874EF
secondary
#F0F1CE
accent
#DC0AD5
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7874EF

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

Preview Lab → · Contrast checker → · Palette generator →

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