#798BD2#798BD2

#798BD2 is a light, moderate blue. Relative luminance 0.272; OKLCH L 65.2% C 0.108 H 272.3°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#798BD2
RGBrgb(121, 139, 210)
HSLhsl(228, 50%, 65%)
HSVhsv(228, 42%, 82%)
CMYKcmyk(42.4%, 33.8%, 0%, 17.6%)
CIE-LABlab(59.14, 11.74, -38.58)
CIE-LCHlch(59.14, 40.33, 286.92°)
OKLaboklab(65.2% 0.0043 -0.1082)
OKLCHoklch(65.2% 0.108 272.3)
XYZxyz(28.7471, 27.1819, 64.6922)
Luminance0.2718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BD2 #D2C079
analogous
#79B8D2 #798BD2 #9379D2
triadic
#798BD2 #D2798B #8BD279
tetradic
#798BD2 #D279B8 #D2C079 #79D293
square
#798BD2 #D279B8 #D2C079 #79D293
split-complementary
#798BD2 #D29379 #B8D279
monochromatic
#34499C #4B63C3 #798BD2 #A7B3E1 #D5DAF1

Accessibility & contrast

On white

3.26
#798BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#798BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BD2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BD2#FFFFFF#000000##000000
##798BD21.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7292D5
Deuteranopia (green-blind)
#6A8BD0
Tritanopia (blue-blind)
#5B99A5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #798bd2;
/* rgb */ color: rgb(121, 139, 210);
/* oklch */ color: oklch(65.2% 0.108 272.3);
Tailwind
colors: {
  custom: {
    50: '#a3ace0',
    500: '#798bd2',
    950: '#000000',
  },
}
SCSS
$custom: #798bd2;
$custom-light: #a3ace0;
$custom-dark: #000000;
JSON
{
  "hex": "#798bd2",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 210
  },
  "hsl": {
    "h": 227.865,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.65199,
    "c": 0.1083,
    "h": 272.3
  },
  "luminance": 0.27183
}

Semantic roles & 50–950 ramp

primary
#798BD2
secondary
#E3DCC4
accent
#9F28BD
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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