#798CD7#798CD7

#798CD7 is a light, moderate blue. Relative luminance 0.277; OKLCH L 65.7% C 0.114 H 272.1°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#798CD7
RGBrgb(121, 140, 215)
HSLhsl(228, 54%, 66%)
HSVhsv(228, 44%, 84%)
CMYKcmyk(43.7%, 34.9%, 0%, 15.7%)
CIE-LABlab(59.64, 12.59, -40.60)
CIE-LCHlch(59.64, 42.51, 287.23°)
OKLaboklab(65.66% 0.0042 -0.1141)
OKLCHoklch(65.66% 0.114 272.1)
XYZxyz(29.5252, 27.7259, 68.0727)
Luminance0.2773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CD7 #D7C479
analogous
#79BBD7 #798CD7 #9579D7
triadic
#798CD7 #D7798C #8CD779
tetradic
#798CD7 #D779BB #D7C479 #79D795
square
#798CD7 #D779BB #D7C479 #79D795
split-complementary
#798CD7 #D79579 #BBD779
monochromatic
#3148A4 #4A64C9 #798CD7 #A8B4E5 #D7DDF3

Accessibility & contrast

On white

3.21
#798CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#798CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CD7
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CD7#FFFFFF#000000##000000
##798CD71.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7194DA
Deuteranopia (green-blind)
#698CD5
Tritanopia (blue-blind)
#589BA7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #798cd7;
/* rgb */ color: rgb(121, 140, 215);
/* oklch */ color: oklch(65.7% 0.114 272.1);
Tailwind
colors: {
  custom: {
    50: '#a4ade3',
    500: '#798cd7',
    950: '#000000',
  },
}
SCSS
$custom: #798cd7;
$custom-light: #a4ade3;
$custom-dark: #000000;
JSON
{
  "hex": "#798cd7",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 215
  },
  "hsl": {
    "h": 227.872,
    "s": 54.023,
    "l": 65.882
  },
  "oklch": {
    "l": 0.6566,
    "c": 0.11416,
    "h": 272.1
  },
  "luminance": 0.27727
}

Semantic roles & 50–950 ramp

primary
#798CD7
secondary
#E5DFC6
accent
#A224C1
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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