#797FAA#797FAA

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

Color values

HEX#797FAA
RGBrgb(121, 127, 170)
HSLhsl(233, 22%, 57%)
HSVhsv(233, 29%, 67%)
CMYKcmyk(28.8%, 25.3%, 0%, 33.3%)
CIE-LABlab(54.18, 7.84, -23.54)
CIE-LCHlch(54.18, 24.81, 288.43°)
OKLaboklab(60.79% 0.0092 -0.065)
OKLCHoklch(60.79% 0.066 278.1)
XYZxyz(22.7283, 22.1453, 41.0994)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FAA #AAA479
analogous
#7998AA #797FAA #8C79AA
triadic
#797FAA #AA797F #7FAA79
tetradic
#797FAA #AA7998 #AAA479 #79AA8C
square
#797FAA #AA7998 #AAA479 #79AA8C
split-complementary
#797FAA #AA8C79 #98AA79
monochromatic
#414667 #595F8D #797FAA #9EA3C2 #C4C7DA

Accessibility & contrast

On white

3.87
#797FAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#797FAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FAA
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FAA#FFFFFF#000000##000000
##797FAA1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7383AC
Deuteranopia (green-blind)
#7080A9
Tritanopia (blue-blind)
#6D878E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797faa;
/* rgb */ color: rgb(121, 127, 170);
/* oklch */ color: oklch(60.8% 0.066 278.1);
Tailwind
colors: {
  custom: {
    50: '#a1a4c3',
    500: '#797faa',
    950: '#000000',
  },
}
SCSS
$custom: #797faa;
$custom-light: #a1a4c3;
$custom-dark: #000000;
JSON
{
  "hex": "#797faa",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 170
  },
  "hsl": {
    "h": 232.653,
    "s": 22.374,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60787,
    "c": 0.06564,
    "h": 278.1
  },
  "luminance": 0.22146
}

Semantic roles & 50–950 ramp

primary
#797FAA
secondary
#C9C7B5
accent
#B469BF
background
#F9FAFC
surface
#F2F3F8
border
#CCCDD1
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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