#798CB4#798CB4

#798CB4 is a light, moderate blue. Relative luminance 0.261; OKLCH L 64.0% C 0.064 H 264.9°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#798CB4
RGBrgb(121, 140, 180)
HSLhsl(221, 28%, 59%)
HSVhsv(221, 33%, 71%)
CMYKcmyk(32.8%, 22.2%, 0%, 29.4%)
CIE-LABlab(58.15, 2.88, -23.17)
CIE-LCHlch(58.15, 23.35, 277.09°)
OKLaboklab(64.01% -0.0058 -0.064)
OKLCHoklch(64.01% 0.064 264.9)
XYZxyz(25.4991, 26.1154, 46.8684)
Luminance0.2612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CB4 #B4A179
analogous
#79AAB4 #798CB4 #8479B4
triadic
#798CB4 #B4798C #8CB479
tetradic
#798CB4 #B479AA #B4A179 #79B484
square
#798CB4 #B479AA #B4A179 #79B484
split-complementary
#798CB4 #B48479 #AAB479
monochromatic
#405073 #566C9A #798CB4 #A0AECA #C7CFE0

Accessibility & contrast

On white

3.37
#798CB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#798CB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CB4
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CB4#FFFFFF#000000##000000
##798CB41.003.376.226.22
#FFFFFF3.371.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8FB6
Deuteranopia (green-blind)
#7989B3
Tritanopia (blue-blind)
#68949A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #798cb4;
/* rgb */ color: rgb(121, 140, 180);
/* oklch */ color: oklch(64.0% 0.064 264.9);
Tailwind
colors: {
  custom: {
    50: '#a1adca',
    500: '#798cb4',
    950: '#000000',
  },
}
SCSS
$custom: #798cb4;
$custom-light: #a1adca;
$custom-dark: #000000;
JSON
{
  "hex": "#798cb4",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 180
  },
  "hsl": {
    "h": 220.678,
    "s": 28.23,
    "l": 59.02
  },
  "oklch": {
    "l": 0.64007,
    "c": 0.06425,
    "h": 264.9
  },
  "luminance": 0.26116
}

Semantic roles & 50–950 ramp

primary
#798CB4
secondary
#D0C9B9
accent
#A563C5
background
#FAFAFC
surface
#F3F4F8
border
#CDCED1
text
#0F1013
muted
#7F7F82

Preview Lab

Preview with #798CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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