#798BD4#798BD4

#798BD4 is a light, moderate blue. Relative luminance 0.273; OKLCH L 65.3% C 0.111 H 272.5°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#798BD4
RGBrgb(121, 139, 212)
HSLhsl(228, 51%, 65%)
HSVhsv(228, 43%, 83%)
CMYKcmyk(42.9%, 34.4%, 0%, 16.9%)
CIE-LABlab(59.23, 12.31, -39.56)
CIE-LCHlch(59.23, 41.43, 287.29°)
OKLaboklab(65.3% 0.0048 -0.1111)
OKLCHoklch(65.3% 0.111 272.5)
XYZxyz(28.9978, 27.2822, 66.0126)
Luminance0.2728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BD4 #D4C279
analogous
#79B8D4 #798BD4 #9479D4
triadic
#798BD4 #D4798B #8BD479
tetradic
#798BD4 #D479B8 #D4C279 #79D494
square
#798BD4 #D479B8 #D4C279 #79D494
split-complementary
#798BD4 #D49479 #B8D479
monochromatic
#33499F #4B63C5 #798BD4 #A7B3E3 #D6DBF2

Accessibility & contrast

On white

3.25
#798BD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#798BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BD4
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BD4#FFFFFF#000000##000000
##798BD41.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7193D7
Deuteranopia (green-blind)
#698BD2
Tritanopia (blue-blind)
#5A9AA6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #798bd4;
/* rgb */ color: rgb(121, 139, 212);
/* oklch */ color: oklch(65.3% 0.111 272.5);
Tailwind
colors: {
  custom: {
    50: '#a3ace1',
    500: '#798bd4',
    950: '#000000',
  },
}
SCSS
$custom: #798bd4;
$custom-light: #a3ace1;
$custom-dark: #000000;
JSON
{
  "hex": "#798bd4",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 212
  },
  "hsl": {
    "h": 228.132,
    "s": 51.412,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65301,
    "c": 0.11116,
    "h": 272.5
  },
  "luminance": 0.27284
}

Semantic roles & 50–950 ramp

primary
#798BD4
secondary
#E4DEC5
accent
#A127BF
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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