#798BC4#798BC4

#798BC4 is a light, moderate blue. Relative luminance 0.265; OKLCH L 64.5% C 0.088 H 270.4°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#798BC4
RGBrgb(121, 139, 196)
HSLhsl(226, 39%, 62%)
HSVhsv(226, 38%, 77%)
CMYKcmyk(38.3%, 29.1%, 0%, 23.1%)
CIE-LABlab(58.52, 7.79, -31.66)
CIE-LCHlch(58.52, 32.61, 283.82°)
OKLaboklab(64.52% 0.0005 -0.0882)
OKLCHoklch(64.52% 0.088 270.4)
XYZxyz(27.0786, 26.5145, 55.9049)
Luminance0.2652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BC4 #C4B279
analogous
#79B1C4 #798BC4 #8D79C4
triadic
#798BC4 #C4798B #8BC479
tetradic
#798BC4 #C479B1 #C4B279 #79C48D
square
#798BC4 #C479B1 #C4B279 #79C48D
split-complementary
#798BC4 #C48D79 #B1C479
monochromatic
#3B4E87 #4F66B1 #798BC4 #A3B0D7 #CED5E9

Accessibility & contrast

On white

3.33
#798BC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#798BC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BC4
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BC4#FFFFFF#000000##000000
##798BC41.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7890C6
Deuteranopia (green-blind)
#718AC3
Tritanopia (blue-blind)
#62969F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #798bc4;
/* rgb */ color: rgb(121, 139, 196);
/* oklch */ color: oklch(64.5% 0.088 270.4);
Tailwind
colors: {
  custom: {
    50: '#a2acd6',
    500: '#798bc4',
    950: '#000000',
  },
}
SCSS
$custom: #798bc4;
$custom-light: #a2acd6;
$custom-dark: #000000;
JSON
{
  "hex": "#798bc4",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 196
  },
  "hsl": {
    "h": 225.6,
    "s": 38.86,
    "l": 62.157
  },
  "oklch": {
    "l": 0.64515,
    "c": 0.08825,
    "h": 270.4
  },
  "luminance": 0.26516
}

Semantic roles & 50–950 ramp

primary
#798BC4
secondary
#DAD4BF
accent
#9434B2
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F1014
muted
#7F7F83

Preview Lab

Preview with #798BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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