#797CA4#797CA4

#797CA4 is a mid, moderate blue. Relative luminance 0.212; OKLCH L 59.9% C 0.061 H 281.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#797CA4
RGBrgb(121, 124, 164)
HSLhsl(236, 19%, 56%)
HSVhsv(236, 26%, 64%)
CMYKcmyk(26.2%, 24.4%, 0%, 35.7%)
CIE-LABlab(53.12, 8.07, -21.69)
CIE-LCHlch(53.12, 23.15, 290.42°)
OKLaboklab(59.89% 0.0117 -0.0597)
OKLCHoklch(59.89% 0.061 281)
XYZxyz(21.7919, 21.1601, 38.0509)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CA4 #A4A179
analogous
#7991A4 #797CA4 #8B79A4
triadic
#797CA4 #A4797C #7CA479
tetradic
#797CA4 #A47991 #A4A179 #79A48B
square
#797CA4 #A47991 #A4A179 #79A48B
split-complementary
#797CA4 #A48B79 #91A479
monochromatic
#424461 #5B5D85 #797CA4 #9DA0BD #C2C3D6

Accessibility & contrast

On white

4.01
#797CA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#797CA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CA4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CA4#FFFFFF#000000##000000
##797CA41.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7180A6
Deuteranopia (green-blind)
#6F7DA3
Tritanopia (blue-blind)
#6F838A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797ca4;
/* rgb */ color: rgb(121, 124, 164);
/* oklch */ color: oklch(59.9% 0.061 281.0);
Tailwind
colors: {
  custom: {
    50: '#a0a1bf',
    500: '#797ca4',
    950: '#000000',
  },
}
SCSS
$custom: #797ca4;
$custom-light: #a0a1bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797ca4",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 164
  },
  "hsl": {
    "h": 235.814,
    "s": 19.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59888,
    "c": 0.06087,
    "h": 281
  },
  "luminance": 0.21161
}

Semantic roles & 50–950 ramp

primary
#797CA4
secondary
#C5C4B3
accent
#B66CBC
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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