#7874DC#7874DC

#7874DC is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.2% C 0.154 H 282.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7874DC
RGBrgb(120, 116, 220)
HSLhsl(242, 60%, 66%)
HSVhsv(242, 47%, 86%)
CMYKcmyk(45.5%, 47.3%, 0%, 13.7%)
CIE-LABlab(53.65, 28.07, -52.90)
CIE-LCHlch(53.65, 59.88, 297.95°)
OKLaboklab(61.15% 0.0335 -0.1501)
OKLCHoklch(61.15% 0.154 282.6)
XYZxyz(26.9056, 21.6499, 70.4574)
Luminance0.2165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7874DC #D8DC74
analogous
#74A4DC #7874DC #AC74DC
triadic
#7874DC #DC7874 #74DC78
tetradic
#7874DC #DC74A4 #D8DC74 #74DCAC
square
#7874DC #DC74A4 #D8DC74 #74DCAC
split-complementary
#7874DC #DCAC74 #A4DC74
monochromatic
#302BAB #4943D0 #7874DC #A7A5E8 #D7D6F5

Accessibility & contrast

On white

3.94
#7874DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#7874DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7874DC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7874DC#FFFFFF#000000##000000
##7874DC1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4984E0
Deuteranopia (green-blind)
#437DDA
Tritanopia (blue-blind)
#578A9D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7874dc;
/* rgb */ color: rgb(120, 116, 220);
/* oklch */ color: oklch(61.2% 0.154 282.6);
Tailwind
colors: {
  custom: {
    50: '#a49ce7',
    500: '#7874dc',
    950: '#000000',
  },
}
SCSS
$custom: #7874dc;
$custom-light: #a49ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#7874dc",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 220
  },
  "hsl": {
    "h": 242.308,
    "s": 59.77,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61153,
    "c": 0.15383,
    "h": 282.6
  },
  "luminance": 0.21651
}

Semantic roles & 50–950 ramp

primary
#7874DC
secondary
#E6E7C5
accent
#C71EC1
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7874DC

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

Preview Lab → · Contrast checker → · Palette generator →

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