#798CD2#798CD2

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

Color values

HEX#798CD2
RGBrgb(121, 140, 210)
HSLhsl(227, 50%, 65%)
HSVhsv(227, 42%, 82%)
CMYKcmyk(42.4%, 33.3%, 0%, 17.6%)
CIE-LABlab(59.41, 11.15, -38.16)
CIE-LCHlch(59.41, 39.76, 286.29°)
OKLaboklab(65.41% 0.003 -0.107)
OKLCHoklch(65.41% 0.107 271.6)
XYZxyz(28.8925, 27.4728, 64.7407)
Luminance0.2747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CD2 #D2BF79
analogous
#79B9D2 #798CD2 #9279D2
triadic
#798CD2 #D2798C #8CD279
tetradic
#798CD2 #D279B9 #D2BF79 #79D292
square
#798CD2 #D279B9 #D2BF79 #79D292
split-complementary
#798CD2 #D29279 #B9D279
monochromatic
#344B9C #4B65C3 #798CD2 #A7B3E1 #D5DBF1

Accessibility & contrast

On white

3.23
#798CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798CD2#FFFFFF#000000##000000
##798CD21.003.236.496.49
#FFFFFF3.231.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7493D5
Deuteranopia (green-blind)
#6C8CD0
Tritanopia (blue-blind)
#5B9AA5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #798cd2;
/* rgb */ color: rgb(121, 140, 210);
/* oklch */ color: oklch(65.4% 0.107 271.6);
Tailwind
colors: {
  custom: {
    50: '#a3ade0',
    500: '#798cd2',
    950: '#000000',
  },
}
SCSS
$custom: #798cd2;
$custom-light: #a3ade0;
$custom-dark: #000000;
JSON
{
  "hex": "#798cd2",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 210
  },
  "hsl": {
    "h": 227.191,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.65406,
    "c": 0.10705,
    "h": 271.6
  },
  "luminance": 0.27474
}

Semantic roles & 50–950 ramp

primary
#798CD2
secondary
#E3DCC4
accent
#9D28BD
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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