#798FC2#798FC2

#798FC2 is a light, moderate blue. Relative luminance 0.276; OKLCH L 65.3% C 0.081 H 266.2°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#798FC2
RGBrgb(121, 143, 194)
HSLhsl(222, 37%, 62%)
HSVhsv(222, 38%, 76%)
CMYKcmyk(37.6%, 26.3%, 0%, 23.9%)
CIE-LABlab(59.53, 4.91, -28.97)
CIE-LCHlch(59.53, 29.39, 279.62°)
OKLaboklab(65.27% -0.0053 -0.0805)
OKLCHoklch(65.27% 0.081 266.2)
XYZxyz(27.4423, 27.6036, 54.9106)
Luminance0.2761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798FC2 #C2AC79
analogous
#79B4C2 #798FC2 #8879C2
triadic
#798FC2 #C2798F #8FC279
tetradic
#798FC2 #C279B4 #C2AC79 #79C288
square
#798FC2 #C279B4 #C2AC79 #79C288
split-complementary
#798FC2 #C28879 #B4C279
monochromatic
#3C5284 #4F6CAE #798FC2 #A3B2D5 #CDD5E8

Accessibility & contrast

On white

3.22
#798FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#798FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798FC2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798FC2#FFFFFF#000000##000000
##798FC21.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E93C4
Deuteranopia (green-blind)
#778CC1
Tritanopia (blue-blind)
#6299A1
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #798fc2;
/* rgb */ color: rgb(121, 143, 194);
/* oklch */ color: oklch(65.3% 0.081 266.2);
Tailwind
colors: {
  custom: {
    50: '#a2afd4',
    500: '#798fc2',
    950: '#000000',
  },
}
SCSS
$custom: #798fc2;
$custom-light: #a2afd4;
$custom-dark: #000000;
JSON
{
  "hex": "#798fc2",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 194
  },
  "hsl": {
    "h": 221.918,
    "s": 37.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.65271,
    "c": 0.08071,
    "h": 266.2
  },
  "luminance": 0.27605
}

Semantic roles & 50–950 ramp

primary
#798FC2
secondary
#D9D1BE
accent
#8B35B0
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F1014
muted
#7F7F83

Preview Lab

Preview with #798FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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