#798CD1#798CD1

#798CD1 is a light, moderate blue. Relative luminance 0.274; OKLCH L 65.4% C 0.106 H 271.5°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#798CD1
RGBrgb(121, 140, 209)
HSLhsl(227, 49%, 65%)
HSVhsv(227, 42%, 82%)
CMYKcmyk(42.1%, 33%, 0%, 18%)
CIE-LABlab(59.36, 10.86, -37.67)
CIE-LCHlch(59.36, 39.21, 286.09°)
OKLaboklab(65.36% 0.0028 -0.1056)
OKLCHoklch(65.36% 0.106 271.5)
XYZxyz(28.7683, 27.4231, 64.0866)
Luminance0.2742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CD1 #D1BE79
analogous
#79B8D1 #798CD1 #9279D1
triadic
#798CD1 #D1798C #8CD179
tetradic
#798CD1 #D179B8 #D1BE79 #79D192
square
#798CD1 #D179B8 #D1BE79 #79D192
split-complementary
#798CD1 #D19279 #B8D179
monochromatic
#354B9B #4B65C1 #798CD1 #A7B3E1 #D4DAF0

Accessibility & contrast

On white

3.24
#798CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#798CD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CD1
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CD1#FFFFFF#000000##000000
##798CD11.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7493D4
Deuteranopia (green-blind)
#6C8BCF
Tritanopia (blue-blind)
#5C9AA5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #798cd1;
/* rgb */ color: rgb(121, 140, 209);
/* oklch */ color: oklch(65.4% 0.106 271.5);
Tailwind
colors: {
  custom: {
    50: '#a3addf',
    500: '#798cd1',
    950: '#000000',
  },
}
SCSS
$custom: #798cd1;
$custom-light: #a3addf;
$custom-dark: #000000;
JSON
{
  "hex": "#798cd1",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 209
  },
  "hsl": {
    "h": 227.045,
    "s": 48.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.65356,
    "c": 0.10563,
    "h": 271.5
  },
  "luminance": 0.27425
}

Semantic roles & 50–950 ramp

primary
#798CD1
secondary
#E2DBC4
accent
#9C29BC
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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