#7874EB#7874EB

#7874EB is a light, vivid blue. Relative luminance 0.225; OKLCH L 62.1% C 0.174 H 281.6°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7874EB
RGBrgb(120, 116, 235)
HSLhsl(242, 75%, 69%)
HSVhsv(242, 51%, 92%)
CMYKcmyk(48.9%, 50.6%, 0%, 7.8%)
CIE-LABlab(54.53, 32.52, -59.90)
CIE-LCHlch(54.53, 68.16, 298.49°)
OKLaboklab(62.1% 0.0349 -0.1707)
OKLCHoklch(62.1% 0.174 281.6)
XYZxyz(28.9820, 22.4805, 81.3932)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7874EB #E7EB74
analogous
#74ACEB #7874EB #B474EB
triadic
#7874EB #EB7874 #74EB78
tetradic
#7874EB #EB74AC #E7EB74 #74EBB4
square
#7874EB #EB74AC #E7EB74 #74EBB4
split-complementary
#7874EB #EBB474 #ACEB74
monochromatic
#231DC8 #443EE3 #7874EB #ACAAF3 #E0DFFA

Accessibility & contrast

On white

3.82
#7874EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7874EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7874EB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7874EB#FFFFFF#000000##000000
##7874EB1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A87EF
Deuteranopia (green-blind)
#307EE8
Tritanopia (blue-blind)
#4D8EA5
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7874eb;
/* rgb */ color: rgb(120, 116, 235);
/* oklch */ color: oklch(62.1% 0.174 281.6);
Tailwind
colors: {
  custom: {
    50: '#a69cf2',
    500: '#7874eb',
    950: '#000000',
  },
}
SCSS
$custom: #7874eb;
$custom-light: #a69cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7874eb",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 235
  },
  "hsl": {
    "h": 242.017,
    "s": 74.843,
    "l": 68.824
  },
  "oklch": {
    "l": 0.62098,
    "c": 0.17424,
    "h": 281.6
  },
  "luminance": 0.22482
}

Semantic roles & 50–950 ramp

primary
#7874EB
secondary
#EEEFCC
accent
#D70FD0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7874EB

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

Preview Lab → · Contrast checker → · Palette generator →

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