#797BAF#797BAF

#797BAF is a mid, moderate blue. Relative luminance 0.213; OKLCH L 60.2% C 0.079 H 282.1°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#797BAF
RGBrgb(121, 123, 175)
HSLhsl(238, 25%, 58%)
HSVhsv(238, 31%, 69%)
CMYKcmyk(30.9%, 29.7%, 0%, 31.4%)
CIE-LABlab(53.30, 11.51, -27.78)
CIE-LCHlch(53.30, 30.07, 292.51°)
OKLaboklab(60.18% 0.0165 -0.0771)
OKLCHoklch(60.18% 0.079 282.1)
XYZxyz(22.7039, 21.3254, 43.4691)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BAF #AFAD79
analogous
#7996AF #797BAF #9279AF
triadic
#797BAF #AF797B #7BAF79
tetradic
#797BAF #AF7996 #AFAD79 #79AF92
square
#797BAF #AF7996 #AFAD79 #79AF92
split-complementary
#797BAF #AF9279 #96AF79
monochromatic
#41436D #585A93 #797BAF #9FA1C6 #C6C6DD

Accessibility & contrast

On white

3.99
#797BAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#797BAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BAF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BAF#FFFFFF#000000##000000
##797BAF1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C81B1
Deuteranopia (green-blind)
#6A7EAE
Tritanopia (blue-blind)
#6B858D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797baf;
/* rgb */ color: rgb(121, 123, 175);
/* oklch */ color: oklch(60.2% 0.079 282.1);
Tailwind
colors: {
  custom: {
    50: '#a1a1c7',
    500: '#797baf',
    950: '#000000',
  },
}
SCSS
$custom: #797baf;
$custom-light: #a1a1c7;
$custom-dark: #000000;
JSON
{
  "hex": "#797baf",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 175
  },
  "hsl": {
    "h": 237.778,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60176,
    "c": 0.07882,
    "h": 282.1
  },
  "luminance": 0.21326
}

Semantic roles & 50–950 ramp

primary
#797BAF
secondary
#CDCCB7
accent
#BE66C2
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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