#798CD5#798CD5

#798CD5 is a light, moderate blue. Relative luminance 0.276; OKLCH L 65.6% C 0.111 H 271.9°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#798CD5
RGBrgb(121, 140, 213)
HSLhsl(228, 52%, 65%)
HSVhsv(228, 43%, 84%)
CMYKcmyk(43.2%, 34.3%, 0%, 16.5%)
CIE-LABlab(59.55, 12.01, -39.63)
CIE-LCHlch(59.55, 41.41, 286.86°)
OKLaboklab(65.56% 0.0038 -0.1113)
OKLCHoklch(65.56% 0.111 271.9)
XYZxyz(29.2698, 27.6237, 66.7275)
Luminance0.2762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CD5 #D5C279
analogous
#79BAD5 #798CD5 #9479D5
triadic
#798CD5 #D5798C #8CD579
tetradic
#798CD5 #D579BA #D5C279 #79D594
square
#798CD5 #D579BA #D5C279 #79D594
split-complementary
#798CD5 #D59479 #BAD579
monochromatic
#3249A1 #4A64C6 #798CD5 #A8B4E4 #D6DCF2

Accessibility & contrast

On white

3.22
#798CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#798CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CD5
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CD5#FFFFFF#000000##000000
##798CD51.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7294D8
Deuteranopia (green-blind)
#6A8CD3
Tritanopia (blue-blind)
#599BA7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #798cd5;
/* rgb */ color: rgb(121, 140, 213);
/* oklch */ color: oklch(65.6% 0.111 271.9);
Tailwind
colors: {
  custom: {
    50: '#a3ade2',
    500: '#798cd5',
    950: '#000000',
  },
}
SCSS
$custom: #798cd5;
$custom-light: #a3ade2;
$custom-dark: #000000;
JSON
{
  "hex": "#798cd5",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 213
  },
  "hsl": {
    "h": 227.609,
    "s": 52.273,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65558,
    "c": 0.11132,
    "h": 271.9
  },
  "luminance": 0.27625
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #798CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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