#798CD9#798CD9

#798CD9 is a light, moderate blue. Relative luminance 0.278; OKLCH L 65.8% C 0.117 H 272.3°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#798CD9
RGBrgb(121, 140, 217)
HSLhsl(228, 56%, 66%)
HSVhsv(228, 44%, 85%)
CMYKcmyk(44.2%, 35.5%, 0%, 14.9%)
CIE-LABlab(59.73, 13.17, -41.57)
CIE-LCHlch(59.73, 43.61, 287.58°)
OKLaboklab(65.76% 0.0047 -0.1169)
OKLCHoklch(65.76% 0.117 272.3)
XYZxyz(29.7837, 27.8293, 69.4344)
Luminance0.2783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CD9 #D9C679
analogous
#79BCD9 #798CD9 #9679D9
triadic
#798CD9 #D9798C #8CD979
tetradic
#798CD9 #D979BC #D9C679 #79D996
square
#798CD9 #D979BC #D9C679 #79D996
split-complementary
#798CD9 #D99679 #BCD979
monochromatic
#3047A8 #4963CB #798CD9 #A9B5E7 #D8DEF4

Accessibility & contrast

On white

3.20
#798CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#798CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CD9
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CD9#FFFFFF#000000##000000
##798CD91.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7094DC
Deuteranopia (green-blind)
#688CD7
Tritanopia (blue-blind)
#579CA8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #798cd9;
/* rgb */ color: rgb(121, 140, 217);
/* oklch */ color: oklch(65.8% 0.117 272.3);
Tailwind
colors: {
  custom: {
    50: '#a4ade5',
    500: '#798cd9',
    950: '#000000',
  },
}
SCSS
$custom: #798cd9;
$custom-light: #a4ade5;
$custom-dark: #000000;
JSON
{
  "hex": "#798cd9",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 217
  },
  "hsl": {
    "h": 228.125,
    "s": 55.814,
    "l": 66.275
  },
  "oklch": {
    "l": 0.65763,
    "c": 0.11699,
    "h": 272.3
  },
  "luminance": 0.27831
}

Semantic roles & 50–950 ramp

primary
#798CD9
secondary
#E7E0C7
accent
#A322C3
background
#FAFAFE
surface
#F4F4FC
border
#CECED5
text
#0F1016
muted
#7F7F84

Preview Lab

Preview with #798CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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