#798CB5#798CB5

#798CB5 is a light, moderate blue. Relative luminance 0.262; OKLCH L 64.0% C 0.066 H 265.3°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#798CB5
RGBrgb(121, 140, 181)
HSLhsl(221, 29%, 59%)
HSVhsv(221, 33%, 71%)
CMYKcmyk(33.1%, 22.7%, 0%, 29%)
CIE-LABlab(58.19, 3.14, -23.68)
CIE-LCHlch(58.19, 23.89, 277.56°)
OKLaboklab(64.05% -0.0054 -0.0654)
OKLCHoklch(64.05% 0.066 265.3)
XYZxyz(25.6013, 26.1563, 47.4069)
Luminance0.2616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CB5 #B5A279
analogous
#79AAB5 #798CB5 #8479B5
triadic
#798CB5 #B5798C #8CB579
tetradic
#798CB5 #B579AA #B5A279 #79B584
square
#798CB5 #B579AA #B5A279 #79B584
split-complementary
#798CB5 #B58479 #AAB579
monochromatic
#405074 #566C9B #798CB5 #A0AECB #C8D0E1

Accessibility & contrast

On white

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

On black

6.23
#798CB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CB5
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CB5#FFFFFF#000000##000000
##798CB51.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798cb5;
/* rgb */ color: rgb(121, 140, 181);
/* oklch */ color: oklch(64.0% 0.066 265.3);
Tailwind
colors: {
  custom: {
    50: '#a1adcb',
    500: '#798cb5',
    950: '#000000',
  },
}
SCSS
$custom: #798cb5;
$custom-light: #a1adcb;
$custom-dark: #000000;
JSON
{
  "hex": "#798cb5",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 181
  },
  "hsl": {
    "h": 221,
    "s": 28.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.6405,
    "c": 0.06565,
    "h": 265.3
  },
  "luminance": 0.26157
}

Semantic roles & 50–950 ramp

primary
#798CB5
secondary
#D1C9B9
accent
#A663C5
background
#FAFAFC
surface
#F3F4F8
border
#CDCED1
text
#0F1013
muted
#7F7F82

Preview Lab

Preview with #798CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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