#797EAF#797EAF

#797EAF is a mid, moderate blue. Relative luminance 0.221; OKLCH L 60.8% C 0.075 H 279.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#797EAF
RGBrgb(121, 126, 175)
HSLhsl(234, 25%, 58%)
HSVhsv(234, 31%, 69%)
CMYKcmyk(30.9%, 28%, 0%, 31.4%)
CIE-LABlab(54.11, 9.74, -26.52)
CIE-LCHlch(54.11, 28.25, 290.16°)
OKLaboklab(60.8% 0.0122 -0.0735)
OKLCHoklch(60.8% 0.075 279.4)
XYZxyz(23.0818, 22.0811, 43.5951)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EAF #AFAA79
analogous
#7999AF #797EAF #8F79AF
triadic
#797EAF #AF797E #7EAF79
tetradic
#797EAF #AF7999 #AFAA79 #79AF8F
square
#797EAF #AF7999 #AFAA79 #79AF8F
split-complementary
#797EAF #AF8F79 #99AF79
monochromatic
#41456D #585D93 #797EAF #9FA3C6 #C6C8DD

Accessibility & contrast

On white

3.88
#797EAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#797EAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EAF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EAF#FFFFFF#000000##000000
##797EAF1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7083B1
Deuteranopia (green-blind)
#6D80AE
Tritanopia (blue-blind)
#6B878F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797eaf;
/* rgb */ color: rgb(121, 126, 175);
/* oklch */ color: oklch(60.8% 0.075 279.4);
Tailwind
colors: {
  custom: {
    50: '#a1a3c7',
    500: '#797eaf',
    950: '#000000',
  },
}
SCSS
$custom: #797eaf;
$custom-light: #a1a3c7;
$custom-dark: #000000;
JSON
{
  "hex": "#797eaf",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 175
  },
  "hsl": {
    "h": 234.444,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60802,
    "c": 0.07451,
    "h": 279.4
  },
  "luminance": 0.22082
}

Semantic roles & 50–950 ramp

primary
#797EAF
secondary
#CDCBB7
accent
#B966C2
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EAF

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

Preview Lab → · Contrast checker → · Palette generator →

#797EAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva