#797AA7#797AA7

#797AA7 is a mid, moderate blue. Relative luminance 0.208; OKLCH L 59.6% C 0.068 H 283.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#797AA7
RGBrgb(121, 122, 167)
HSLhsl(239, 21%, 56%)
HSVhsv(239, 28%, 65%)
CMYKcmyk(27.5%, 26.9%, 0%, 34.5%)
CIE-LABlab(52.70, 10.02, -24.08)
CIE-LCHlch(52.70, 26.09, 292.59°)
OKLaboklab(59.6% 0.0155 -0.0665)
OKLCHoklch(59.6% 0.068 283.1)
XYZxyz(21.8179, 20.7735, 39.4119)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AA7 #A7A679
analogous
#7991A7 #797AA7 #8F79A7
triadic
#797AA7 #A7797A #7AA779
tetradic
#797AA7 #A77991 #A7A679 #79A78F
square
#797AA7 #A77991 #A7A679 #79A78F
split-complementary
#797AA7 #A78F79 #91A779
monochromatic
#424264 #5A5B89 #797AA7 #9E9FBF #C3C3D8

Accessibility & contrast

On white

4.07
#797AA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#797AA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AA7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AA7#FFFFFF#000000##000000
##797AA71.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E7FA9
Deuteranopia (green-blind)
#6C7CA6
Tritanopia (blue-blind)
#6E828A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797aa7;
/* rgb */ color: rgb(121, 122, 167);
/* oklch */ color: oklch(59.6% 0.068 283.1);
Tailwind
colors: {
  custom: {
    50: '#a0a0c1',
    500: '#797aa7',
    950: '#000000',
  },
}
SCSS
$custom: #797aa7;
$custom-light: #a0a0c1;
$custom-dark: #000000;
JSON
{
  "hex": "#797aa7",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 167
  },
  "hsl": {
    "h": 238.696,
    "s": 20.721,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59599,
    "c": 0.06831,
    "h": 283.1
  },
  "luminance": 0.20774
}

Semantic roles & 50–950 ramp

primary
#797AA7
secondary
#C7C7B4
accent
#BB6BBD
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0E12
muted
#7E7E81

Preview Lab

Preview with #797AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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