#798ACC#798ACC

#798ACC is a light, moderate blue. Relative luminance 0.266; OKLCH L 64.7% C 0.101 H 272.3°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#798ACC
RGBrgb(121, 138, 204)
HSLhsl(228, 45%, 64%)
HSVhsv(228, 41%, 80%)
CMYKcmyk(40.7%, 32.4%, 0%, 20%)
CIE-LABlab(58.60, 10.61, -36.05)
CIE-LCHlch(58.60, 37.58, 286.40°)
OKLaboklab(64.69% 0.004 -0.1009)
OKLCHoklch(64.69% 0.101 272.3)
XYZxyz(27.8694, 26.6002, 60.7809)
Luminance0.2660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798ACC #CCBB79
analogous
#79B3CC #798ACC #9179CC
triadic
#798ACC #CC798A #8ACC79
tetradic
#798ACC #CC79B3 #CCBB79 #79CC91
square
#798ACC #CC79B3 #CCBB79 #79CC91
split-complementary
#798ACC #CC9179 #B3CC79
monochromatic
#384A93 #4D63BB #798ACC #A5B1DD #D2D7EE

Accessibility & contrast

On white

3.32
#798ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#798ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798ACC
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798ACC#FFFFFF#000000##000000
##798ACC1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7391CF
Deuteranopia (green-blind)
#6C8ACA
Tritanopia (blue-blind)
#5E97A2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #798acc;
/* rgb */ color: rgb(121, 138, 204);
/* oklch */ color: oklch(64.7% 0.101 272.3);
Tailwind
colors: {
  custom: {
    50: '#a3acdc',
    500: '#798acc',
    950: '#000000',
  },
}
SCSS
$custom: #798acc;
$custom-light: #a3acdc;
$custom-dark: #000000;
JSON
{
  "hex": "#798acc",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 204
  },
  "hsl": {
    "h": 227.711,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64692,
    "c": 0.10099,
    "h": 272.3
  },
  "luminance": 0.26602
}

Semantic roles & 50–950 ramp

primary
#798ACC
secondary
#DFD9C2
accent
#9C2DB8
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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