#797FB7#797FB7

#797FB7 is a mid, moderate blue. Relative luminance 0.227; OKLCH L 61.4% C 0.085 H 278.9°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#797FB7
RGBrgb(121, 127, 183)
HSLhsl(234, 30%, 60%)
HSVhsv(234, 34%, 72%)
CMYKcmyk(33.9%, 30.6%, 0%, 28.2%)
CIE-LABlab(54.72, 11.28, -30.17)
CIE-LCHlch(54.72, 32.21, 290.49°)
OKLaboklab(61.39% 0.0131 -0.084)
OKLCHoklch(61.39% 0.085 278.9)
XYZxyz(24.0194, 22.6618, 47.8992)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FB7 #B7B179
analogous
#799EB7 #797FB7 #9279B7
triadic
#797FB7 #B7797F #7FB779
tetradic
#797FB7 #B7799E #B7B179 #79B792
square
#797FB7 #B7799E #B7B179 #79B792
split-complementary
#797FB7 #B79279 #9EB779
monochromatic
#3F4576 #555C9E #797FB7 #A1A5CC #C9CBE2

Accessibility & contrast

On white

3.80
#797FB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#797FB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FB7
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FB7#FFFFFF#000000##000000
##797FB71.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E85B9
Deuteranopia (green-blind)
#6A81B6
Tritanopia (blue-blind)
#688A93
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797fb7;
/* rgb */ color: rgb(121, 127, 183);
/* oklch */ color: oklch(61.4% 0.085 278.9);
Tailwind
colors: {
  custom: {
    50: '#a1a4cd',
    500: '#797fb7',
    950: '#000000',
  },
}
SCSS
$custom: #797fb7;
$custom-light: #a1a4cd;
$custom-dark: #000000;
JSON
{
  "hex": "#797fb7",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 183
  },
  "hsl": {
    "h": 234.194,
    "s": 30.097,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61385,
    "c": 0.08498,
    "h": 278.9
  },
  "luminance": 0.22663
}

Semantic roles & 50–950 ramp

primary
#797FB7
secondary
#D2D0BA
accent
#BD61C6
background
#FAFAFC
surface
#F3F3F9
border
#CDCDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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