#798CD4#798CD4

#798CD4 is a light, moderate blue. Relative luminance 0.276; OKLCH L 65.5% C 0.110 H 271.8°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#798CD4
RGBrgb(121, 140, 212)
HSLhsl(227, 51%, 65%)
HSVhsv(227, 43%, 83%)
CMYKcmyk(42.9%, 34%, 0%, 16.9%)
CIE-LABlab(59.50, 11.72, -39.14)
CIE-LCHlch(59.50, 40.86, 286.68°)
OKLaboklab(65.51% 0.0035 -0.1098)
OKLCHoklch(65.51% 0.11 271.8)
XYZxyz(29.1432, 27.5731, 66.0611)
Luminance0.2757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CD4 #D4C179
analogous
#79B9D4 #798CD4 #9479D4
triadic
#798CD4 #D4798C #8CD479
tetradic
#798CD4 #D479B9 #D4C179 #79D494
square
#798CD4 #D479B9 #D4C179 #79D494
split-complementary
#798CD4 #D49479 #B9D479
monochromatic
#334A9F #4B64C5 #798CD4 #A7B4E3 #D6DCF2

Accessibility & contrast

On white

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

On black

6.52
#798CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CD4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CD4#FFFFFF#000000##000000
##798CD41.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7393D7
Deuteranopia (green-blind)
#6B8CD2
Tritanopia (blue-blind)
#5A9BA6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #798cd4;
/* rgb */ color: rgb(121, 140, 212);
/* oklch */ color: oklch(65.5% 0.110 271.8);
Tailwind
colors: {
  custom: {
    50: '#a3ade1',
    500: '#798cd4',
    950: '#000000',
  },
}
SCSS
$custom: #798cd4;
$custom-light: #a3ade1;
$custom-dark: #000000;
JSON
{
  "hex": "#798cd4",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 212
  },
  "hsl": {
    "h": 227.473,
    "s": 51.412,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65507,
    "c": 0.1099,
    "h": 271.8
  },
  "luminance": 0.27575
}

Semantic roles & 50–950 ramp

primary
#798CD4
secondary
#E4DDC5
accent
#9F27BF
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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