#7E78B3#7E78B3

#7E78B3 is a mid, moderate blue. Relative luminance 0.211; OKLCH L 60.2% C 0.089 H 288.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7E78B3
RGBrgb(126, 120, 179)
HSLhsl(246, 28%, 59%)
HSVhsv(246, 33%, 70%)
CMYKcmyk(29.6%, 33%, 0%, 29.8%)
CIE-LABlab(53.08, 15.85, -30.39)
CIE-LCHlch(53.08, 34.28, 297.54°)
OKLaboklab(60.16% 0.0276 -0.0845)
OKLCHoklch(60.16% 0.089 288.1)
XYZxyz(23.4552, 21.1227, 45.4804)
Luminance0.2112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E78B3 #ADB378
analogous
#788FB3 #7E78B3 #9B78B3
triadic
#7E78B3 #B37E78 #78B37E
tetradic
#7E78B3 #B3788F #ADB378 #78B39B
square
#7E78B3 #B3788F #ADB378 #78B39B
split-complementary
#7E78B3 #B39B78 #8FB378
monochromatic
#454071 #5C5698 #7E78B3 #A39FC9 #C9C6DF

Accessibility & contrast

On white

4.02
#7E78B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7E78B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E78B3
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E78B3#FFFFFF#000000##000000
##7E78B31.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6880B5
Deuteranopia (green-blind)
#677DB1
Tritanopia (blue-blind)
#72828D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e78b3;
/* rgb */ color: rgb(126, 120, 179);
/* oklch */ color: oklch(60.2% 0.089 288.1);
Tailwind
colors: {
  custom: {
    50: '#a59fca',
    500: '#7e78b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e78b3;
$custom-light: #a59fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e78b3",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 179
  },
  "hsl": {
    "h": 246.102,
    "s": 27.962,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60163,
    "c": 0.08888,
    "h": 288.1
  },
  "luminance": 0.21123
}

Semantic roles & 50–950 ramp

primary
#7E78B3
secondary
#CDCFB8
accent
#C464BA
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #7E78B3

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

Preview Lab → · Contrast checker → · Palette generator →

#7E78B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva