#797FB2#797FB2

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

Color values

HEX#797FB2
RGBrgb(121, 127, 178)
HSLhsl(234, 27%, 59%)
HSVhsv(234, 32%, 70%)
CMYKcmyk(32%, 28.7%, 0%, 30.2%)
CIE-LABlab(54.51, 9.94, -27.64)
CIE-LCHlch(54.51, 29.37, 289.78°)
OKLaboklab(61.15% 0.0117 -0.0767)
OKLCHoklch(61.15% 0.078 278.7)
XYZxyz(23.5082, 22.4573, 45.2069)
Luminance0.2246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FB2 #B2AC79
analogous
#799BB2 #797FB2 #8F79B2
triadic
#797FB2 #B2797F #7FB279
tetradic
#797FB2 #B2799B #B2AC79 #79B28F
square
#797FB2 #B2799B #B2AC79 #79B28F
split-complementary
#797FB2 #B28F79 #9BB279
monochromatic
#404570 #575E97 #797FB2 #A0A4C8 #C7C9DF

Accessibility & contrast

On white

3.82
#797FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#797FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FB2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FB2#FFFFFF#000000##000000
##797FB21.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7085B4
Deuteranopia (green-blind)
#6C80B1
Tritanopia (blue-blind)
#6A8991
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797fb2;
/* rgb */ color: rgb(121, 127, 178);
/* oklch */ color: oklch(61.2% 0.078 278.7);
Tailwind
colors: {
  custom: {
    50: '#a1a4c9',
    500: '#797fb2',
    950: '#000000',
  },
}
SCSS
$custom: #797fb2;
$custom-light: #a1a4c9;
$custom-dark: #000000;
JSON
{
  "hex": "#797fb2",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 178
  },
  "hsl": {
    "h": 233.684,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.6115,
    "c": 0.07756,
    "h": 278.7
  },
  "luminance": 0.22458
}

Semantic roles & 50–950 ramp

primary
#797FB2
secondary
#CFCCB8
accent
#B964C3
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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