#797FB4#797FB4

#797FB4 is a mid, moderate blue. Relative luminance 0.225; OKLCH L 61.2% C 0.081 H 278.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#797FB4
RGBrgb(121, 127, 180)
HSLhsl(234, 28%, 59%)
HSVhsv(234, 33%, 71%)
CMYKcmyk(32.8%, 29.4%, 0%, 29.4%)
CIE-LABlab(54.59, 10.47, -28.65)
CIE-LCHlch(54.59, 30.51, 290.08°)
OKLaboklab(61.24% 0.0123 -0.0796)
OKLCHoklch(61.24% 0.081 278.8)
XYZxyz(23.7105, 22.5382, 46.2722)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FB4 #B4AE79
analogous
#799DB4 #797FB4 #9179B4
triadic
#797FB4 #B4797F #7FB479
tetradic
#797FB4 #B4799D #B4AE79 #79B491
square
#797FB4 #B4799D #B4AE79 #79B491
split-complementary
#797FB4 #B49179 #9DB479
monochromatic
#404573 #565D9A #797FB4 #A0A4CA #C7CAE0

Accessibility & contrast

On white

3.81
#797FB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#797FB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FB4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FB4#FFFFFF#000000##000000
##797FB41.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F85B6
Deuteranopia (green-blind)
#6C81B3
Tritanopia (blue-blind)
#698992
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797fb4;
/* rgb */ color: rgb(121, 127, 180);
/* oklch */ color: oklch(61.2% 0.081 278.8);
Tailwind
colors: {
  custom: {
    50: '#a1a4ca',
    500: '#797fb4',
    950: '#000000',
  },
}
SCSS
$custom: #797fb4;
$custom-light: #a1a4ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797fb4",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 180
  },
  "hsl": {
    "h": 233.898,
    "s": 28.23,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61243,
    "c": 0.08054,
    "h": 278.8
  },
  "luminance": 0.22539
}

Semantic roles & 50–950 ramp

primary
#797FB4
secondary
#D0CEB9
accent
#BB63C5
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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