#797FAF#797FAF

#797FAF is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.0% C 0.073 H 278.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#797FAF
RGBrgb(121, 127, 175)
HSLhsl(233, 25%, 58%)
HSVhsv(233, 31%, 69%)
CMYKcmyk(30.9%, 27.4%, 0%, 31.4%)
CIE-LABlab(54.38, 9.15, -26.11)
CIE-LCHlch(54.38, 27.66, 289.31°)
OKLaboklab(61.01% 0.0108 -0.0723)
OKLCHoklch(61.01% 0.073 278.5)
XYZxyz(23.2103, 22.3381, 43.6379)
Luminance0.2234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FAF #AFA979
analogous
#799AAF #797FAF #8E79AF
triadic
#797FAF #AF797F #7FAF79
tetradic
#797FAF #AF799A #AFA979 #79AF8E
square
#797FAF #AF799A #AFA979 #79AF8E
split-complementary
#797FAF #AF8E79 #9AAF79
monochromatic
#41466D #585E93 #797FAF #9FA4C6 #C6C8DD

Accessibility & contrast

On white

3.84
#797FAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#797FAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FAF
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FAF#FFFFFF#000000##000000
##797FAF1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7184B1
Deuteranopia (green-blind)
#6E80AE
Tritanopia (blue-blind)
#6B8890
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797faf;
/* rgb */ color: rgb(121, 127, 175);
/* oklch */ color: oklch(61.0% 0.073 278.5);
Tailwind
colors: {
  custom: {
    50: '#a1a4c7',
    500: '#797faf',
    950: '#000000',
  },
}
SCSS
$custom: #797faf;
$custom-light: #a1a4c7;
$custom-dark: #000000;
JSON
{
  "hex": "#797faf",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 175
  },
  "hsl": {
    "h": 233.333,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61012,
    "c": 0.0731,
    "h": 278.5
  },
  "luminance": 0.22339
}

Semantic roles & 50–950 ramp

primary
#797FAF
secondary
#CDCAB7
accent
#B766C2
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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