#798CC5#798CC5

#798CC5 is a light, moderate blue. Relative luminance 0.269; OKLCH L 64.8% C 0.088 H 269.7°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#798CC5
RGBrgb(121, 140, 197)
HSLhsl(225, 40%, 62%)
HSVhsv(225, 39%, 77%)
CMYKcmyk(38.6%, 28.9%, 0%, 22.7%)
CIE-LABlab(58.84, 7.48, -31.74)
CIE-LCHlch(58.84, 32.61, 283.26°)
OKLaboklab(64.77% -0.0005 -0.0885)
OKLCHoklch(64.77% 0.088 269.7)
XYZxyz(27.3382, 26.8511, 56.5548)
Luminance0.2685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CC5 #C5B279
analogous
#79B2C5 #798CC5 #8C79C5
triadic
#798CC5 #C5798C #8CC579
tetradic
#798CC5 #C579B2 #C5B279 #79C58C
square
#798CC5 #C579B2 #C5B279 #79C58C
split-complementary
#798CC5 #C58C79 #B2C579
monochromatic
#3B4E89 #4E67B3 #798CC5 #A4B1D7 #CED5EA

Accessibility & contrast

On white

3.30
#798CC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#798CC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CC5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CC5#FFFFFF#000000##000000
##798CC51.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7991C7
Deuteranopia (green-blind)
#728BC4
Tritanopia (blue-blind)
#6197A0
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #798cc5;
/* rgb */ color: rgb(121, 140, 197);
/* oklch */ color: oklch(64.8% 0.088 269.7);
Tailwind
colors: {
  custom: {
    50: '#a2add6',
    500: '#798cc5',
    950: '#000000',
  },
}
SCSS
$custom: #798cc5;
$custom-light: #a2add6;
$custom-dark: #000000;
JSON
{
  "hex": "#798cc5",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 197
  },
  "hsl": {
    "h": 225,
    "s": 39.583,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64773,
    "c": 0.08847,
    "h": 269.7
  },
  "luminance": 0.26852
}

Semantic roles & 50–950 ramp

primary
#798CC5
secondary
#DBD4BF
accent
#9333B3
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F1014
muted
#7F7F83

Preview Lab

Preview with #798CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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