#798BCA#798BCA

#798BCA is a light, moderate blue. Relative luminance 0.268; OKLCH L 64.8% C 0.097 H 271.3°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#798BCA
RGBrgb(121, 139, 202)
HSLhsl(227, 43%, 63%)
HSVhsv(227, 40%, 79%)
CMYKcmyk(40.1%, 31.2%, 0%, 20.8%)
CIE-LABlab(58.78, 9.46, -34.64)
CIE-LCHlch(58.78, 35.91, 285.28°)
OKLaboklab(64.8% 0.0022 -0.0968)
OKLCHoklch(64.8% 0.097 271.3)
XYZxyz(27.7752, 26.7931, 59.5738)
Luminance0.2679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BCA #CAB879
analogous
#79B3CA #798BCA #8F79CA
triadic
#798BCA #CA798B #8BCA79
tetradic
#798BCA #CA79B3 #CAB879 #79CA8F
square
#798BCA #CA79B3 #CAB879 #79CA8F
split-complementary
#798BCA #CA8F79 #B3CA79
monochromatic
#394C90 #4D65B9 #798BCA #A5B1DB #D1D7ED

Accessibility & contrast

On white

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

On black

6.36
#798BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BCA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BCA#FFFFFF#000000##000000
##798BCA1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7691CD
Deuteranopia (green-blind)
#6F8AC9
Tritanopia (blue-blind)
#5F98A2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #798bca;
/* rgb */ color: rgb(121, 139, 202);
/* oklch */ color: oklch(64.8% 0.097 271.3);
Tailwind
colors: {
  custom: {
    50: '#a3acda',
    500: '#798bca',
    950: '#000000',
  },
}
SCSS
$custom: #798bca;
$custom-light: #a3acda;
$custom-dark: #000000;
JSON
{
  "hex": "#798bca",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 202
  },
  "hsl": {
    "h": 226.667,
    "s": 43.316,
    "l": 63.333
  },
  "oklch": {
    "l": 0.64802,
    "c": 0.09687,
    "h": 271.3
  },
  "luminance": 0.26794
}

Semantic roles & 50–950 ramp

primary
#798BCA
secondary
#DED7C1
accent
#982FB6
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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