#798EC4#798EC4

#798EC4 is a light, moderate blue. Relative luminance 0.274; OKLCH L 65.1% C 0.085 H 267.7°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#798EC4
RGBrgb(121, 142, 196)
HSLhsl(223, 39%, 62%)
HSVhsv(223, 38%, 77%)
CMYKcmyk(38.3%, 27.6%, 0%, 23.1%)
CIE-LABlab(59.34, 6.04, -30.40)
CIE-LCHlch(59.34, 30.99, 281.24°)
OKLaboklab(65.15% -0.0034 -0.0846)
OKLCHoklch(65.15% 0.085 267.7)
XYZxyz(27.5189, 27.3952, 56.0517)
Luminance0.2740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EC4 #C4AF79
analogous
#79B4C4 #798EC4 #8A79C4
triadic
#798EC4 #C4798E #8EC479
tetradic
#798EC4 #C479B4 #C4AF79 #79C48A
square
#798EC4 #C479B4 #C4AF79 #79C48A
split-complementary
#798EC4 #C48A79 #B4C479
monochromatic
#3B5187 #4F6AB1 #798EC4 #A3B2D7 #CED6E9

Accessibility & contrast

On white

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

On black

6.48
#798EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798EC4
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EC4#FFFFFF#000000##000000
##798EC41.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C92C6
Deuteranopia (green-blind)
#758CC3
Tritanopia (blue-blind)
#6199A1
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #798ec4;
/* rgb */ color: rgb(121, 142, 196);
/* oklch */ color: oklch(65.1% 0.085 267.7);
Tailwind
colors: {
  custom: {
    50: '#a2aed6',
    500: '#798ec4',
    950: '#000000',
  },
}
SCSS
$custom: #798ec4;
$custom-light: #a2aed6;
$custom-dark: #000000;
JSON
{
  "hex": "#798ec4",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 196
  },
  "hsl": {
    "h": 223.2,
    "s": 38.86,
    "l": 62.157
  },
  "oklch": {
    "l": 0.65149,
    "c": 0.08468,
    "h": 267.7
  },
  "luminance": 0.27396
}

Semantic roles & 50–950 ramp

primary
#798EC4
secondary
#DAD2BF
accent
#8F34B2
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F1014
muted
#7F7F83

Preview Lab

Preview with #798EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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