#798BC2#798BC2

#798BC2 is a light, moderate blue. Relative luminance 0.264; OKLCH L 64.4% C 0.085 H 270.0°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#798BC2
RGBrgb(121, 139, 194)
HSLhsl(225, 37%, 62%)
HSVhsv(225, 38%, 76%)
CMYKcmyk(37.6%, 28.4%, 0%, 23.9%)
CIE-LABlab(58.44, 7.23, -30.66)
CIE-LCHlch(58.44, 31.51, 283.27°)
OKLaboklab(64.42% 0 -0.0854)
OKLCHoklch(64.42% 0.085 270)
XYZxyz(26.8525, 26.4240, 54.7140)
Luminance0.2642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BC2 #C2B079
analogous
#79B0C2 #798BC2 #8C79C2
triadic
#798BC2 #C2798B #8BC279
tetradic
#798BC2 #C279B0 #C2B079 #79C28C
square
#798BC2 #C279B0 #C2B079 #79C28C
split-complementary
#798BC2 #C28C79 #B0C279
monochromatic
#3C4E84 #4F67AE #798BC2 #A3AFD5 #CDD4E8

Accessibility & contrast

On white

3.34
#798BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#798BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BC2
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BC2#FFFFFF#000000##000000
##798BC21.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7990C4
Deuteranopia (green-blind)
#728AC1
Tritanopia (blue-blind)
#63969E
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #798bc2;
/* rgb */ color: rgb(121, 139, 194);
/* oklch */ color: oklch(64.4% 0.085 270.0);
Tailwind
colors: {
  custom: {
    50: '#a2acd4',
    500: '#798bc2',
    950: '#000000',
  },
}
SCSS
$custom: #798bc2;
$custom-light: #a2acd4;
$custom-dark: #000000;
JSON
{
  "hex": "#798bc2",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 194
  },
  "hsl": {
    "h": 225.205,
    "s": 37.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.64421,
    "c": 0.08538,
    "h": 270
  },
  "luminance": 0.26425
}

Semantic roles & 50–950 ramp

primary
#798BC2
secondary
#D9D2BE
accent
#9235B0
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F1014
muted
#7F7F83

Preview Lab

Preview with #798BC2

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

Preview Lab → · Contrast checker → · Palette generator →

#798BC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva