#7A78F2#7A78F2

#7A78F2 is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.4% C 0.178 H 280.8°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7A78F2
RGBrgb(122, 120, 242)
HSLhsl(241, 82%, 71%)
HSVhsv(241, 50%, 95%)
CMYKcmyk(49.6%, 50.4%, 0%, 5.1%)
CIE-LABlab(56.07, 32.67, -61.33)
CIE-LCHlch(56.07, 69.49, 298.04°)
OKLaboklab(63.42% 0.0333 -0.1748)
OKLCHoklch(63.42% 0.178 280.8)
XYZxyz(30.7646, 23.9796, 86.9946)
Luminance0.2398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A78F2 #F0F278
analogous
#78B3F2 #7A78F2 #B778F2
triadic
#7A78F2 #F27A78 #78F27A
tetradic
#7A78F2 #F278B3 #F0F278 #78F2B7
square
#7A78F2 #F278B3 #F0F278 #78F2B7
split-complementary
#7A78F2 #F2B778 #B3F278
monochromatic
#1815DB #4340ED #7A78F2 #B1B0F7 #E4E3FC

Accessibility & contrast

On white

3.62
#7A78F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#7A78F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A78F2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A78F2#FFFFFF#000000##000000
##7A78F21.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8BF6
Deuteranopia (green-blind)
#3182EF
Tritanopia (blue-blind)
#4B93AA
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7a78f2;
/* rgb */ color: rgb(122, 120, 242);
/* oklch */ color: oklch(63.4% 0.178 280.8);
Tailwind
colors: {
  custom: {
    50: '#a89ff7',
    500: '#7a78f2',
    950: '#000000',
  },
}
SCSS
$custom: #7a78f2;
$custom-light: #a89ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a78f2",
  "rgb": {
    "r": 122,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 240.984,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.63422,
    "c": 0.17796,
    "h": 280.8
  },
  "luminance": 0.23981
}

Semantic roles & 50–950 ramp

primary
#7A78F2
secondary
#F3F3D3
accent
#DF07DB
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7A78F2

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

Preview Lab → · Contrast checker → · Palette generator →

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