#798AB2#798AB2

#798AB2 is a light, moderate blue. Relative luminance 0.255; OKLCH L 63.5% C 0.064 H 266.7°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#798AB2
RGBrgb(121, 138, 178)
HSLhsl(222, 27%, 59%)
HSVhsv(222, 32%, 70%)
CMYKcmyk(32%, 22.5%, 0%, 30.2%)
CIE-LABlab(57.52, 3.51, -23.00)
CIE-LCHlch(57.52, 23.26, 278.68°)
OKLaboklab(63.49% -0.0037 -0.0635)
OKLCHoklch(63.49% 0.064 266.7)
XYZxyz(25.0072, 25.4553, 45.7066)
Luminance0.2546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798AB2 #B2A179
analogous
#79A6B2 #798AB2 #8479B2
triadic
#798AB2 #B2798A #8AB279
tetradic
#798AB2 #B279A6 #B2A179 #79B284
square
#798AB2 #B279A6 #B2A179 #79B284
split-complementary
#798AB2 #B28479 #A6B279
monochromatic
#404F70 #576A97 #798AB2 #A0ACC8 #C7CEDF

Accessibility & contrast

On white

3.45
#798AB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#798AB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798AB2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798AB2#FFFFFF#000000##000000
##798AB21.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D8DB4
Deuteranopia (green-blind)
#7888B1
Tritanopia (blue-blind)
#699298
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #798ab2;
/* rgb */ color: rgb(121, 138, 178);
/* oklch */ color: oklch(63.5% 0.064 266.7);
Tailwind
colors: {
  custom: {
    50: '#a1acc9',
    500: '#798ab2',
    950: '#000000',
  },
}
SCSS
$custom: #798ab2;
$custom-light: #a1acc9;
$custom-dark: #000000;
JSON
{
  "hex": "#798ab2",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 178
  },
  "hsl": {
    "h": 222.105,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.6349,
    "c": 0.0636,
    "h": 266.7
  },
  "luminance": 0.25456
}

Semantic roles & 50–950 ramp

primary
#798AB2
secondary
#CFC8B8
accent
#A764C3
background
#FAFAFC
surface
#F3F4F8
border
#CDCED1
text
#0F1013
muted
#7F7F82

Preview Lab

Preview with #798AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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