#798BCB#798BCB

#798BCB is a light, moderate blue. Relative luminance 0.268; OKLCH L 64.9% C 0.098 H 271.4°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#798BCB
RGBrgb(121, 139, 203)
HSLhsl(227, 44%, 64%)
HSVhsv(227, 40%, 80%)
CMYKcmyk(40.4%, 31.5%, 0%, 20.4%)
CIE-LABlab(58.83, 9.74, -35.14)
CIE-LCHlch(58.83, 36.46, 285.50°)
OKLaboklab(64.85% 0.0025 -0.0983)
OKLCHoklch(64.85% 0.098 271.4)
XYZxyz(27.8940, 26.8406, 60.1993)
Luminance0.2684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BCB #CBB979
analogous
#79B4CB #798BCB #9079CB
triadic
#798BCB #CB798B #8BCB79
tetradic
#798BCB #CB79B4 #CBB979 #79CB90
square
#798BCB #CB79B4 #CBB979 #79CB90
split-complementary
#798BCB #CB9079 #B4CB79
monochromatic
#384C91 #4D65BA #798BCB #A5B1DC #D1D7ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798BCB#FFFFFF#000000##000000
##798BCB1.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)
#7591CE
Deuteranopia (green-blind)
#6E8ACA
Tritanopia (blue-blind)
#5F98A2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #798bcb;
/* rgb */ color: rgb(121, 139, 203);
/* oklch */ color: oklch(64.9% 0.098 271.4);
Tailwind
colors: {
  custom: {
    50: '#a3acdb',
    500: '#798bcb',
    950: '#000000',
  },
}
SCSS
$custom: #798bcb;
$custom-light: #a3acdb;
$custom-dark: #000000;
JSON
{
  "hex": "#798bcb",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 203
  },
  "hsl": {
    "h": 226.829,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.64851,
    "c": 0.0983,
    "h": 271.4
  },
  "luminance": 0.26842
}

Semantic roles & 50–950 ramp

primary
#798BCB
secondary
#DED8C1
accent
#992EB7
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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