#798AC8#798AC8

#798AC8 is a light, moderate blue. Relative luminance 0.264; OKLCH L 64.5% C 0.095 H 271.8°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#798AC8
RGBrgb(121, 138, 200)
HSLhsl(227, 42%, 63%)
HSVhsv(227, 40%, 78%)
CMYKcmyk(39.5%, 31%, 0%, 21.6%)
CIE-LABlab(58.42, 9.49, -34.07)
CIE-LCHlch(58.42, 35.37, 285.56°)
OKLaboklab(64.5% 0.003 -0.0952)
OKLCHoklch(64.5% 0.095 271.8)
XYZxyz(27.3958, 26.4108, 58.2867)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798AC8 #C8B779
analogous
#79B1C8 #798AC8 #8F79C8
triadic
#798AC8 #C8798A #8AC879
tetradic
#798AC8 #C879B1 #C8B779 #79C88F
square
#798AC8 #C879B1 #C8B779 #79C88F
split-complementary
#798AC8 #C88F79 #B1C879
monochromatic
#3A4C8D #4E64B6 #798AC8 #A4B0DA #D0D6EC

Accessibility & contrast

On white

3.34
#798AC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#798AC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798AC8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798AC8#FFFFFF#000000##000000
##798AC81.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7590CB
Deuteranopia (green-blind)
#6E89C7
Tritanopia (blue-blind)
#6096A0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #798ac8;
/* rgb */ color: rgb(121, 138, 200);
/* oklch */ color: oklch(64.5% 0.095 271.8);
Tailwind
colors: {
  custom: {
    50: '#a2acd9',
    500: '#798ac8',
    950: '#000000',
  },
}
SCSS
$custom: #798ac8;
$custom-light: #a2acd9;
$custom-dark: #000000;
JSON
{
  "hex": "#798ac8",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 200
  },
  "hsl": {
    "h": 227.089,
    "s": 41.799,
    "l": 62.941
  },
  "oklch": {
    "l": 0.64496,
    "c": 0.09524,
    "h": 271.8
  },
  "luminance": 0.26412
}

Semantic roles & 50–950 ramp

primary
#798AC8
secondary
#DDD6C0
accent
#9831B5
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F1014
muted
#7F7F83

Preview Lab

Preview with #798AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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