#797BB9#797BB9

#797BB9 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.7% C 0.094 H 281.8°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#797BB9
RGBrgb(121, 123, 185)
HSLhsl(238, 31%, 60%)
HSVhsv(238, 35%, 73%)
CMYKcmyk(34.6%, 33.5%, 0%, 27.5%)
CIE-LABlab(53.74, 14.19, -32.85)
CIE-LCHlch(53.74, 35.78, 293.37°)
OKLaboklab(60.66% 0.0192 -0.0917)
OKLCHoklch(60.66% 0.094 281.8)
XYZxyz(23.7226, 21.7329, 48.8345)
Luminance0.2173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB9 #B9B779
analogous
#799BB9 #797BB9 #9779B9
triadic
#797BB9 #B9797B #7BB979
tetradic
#797BB9 #B9799B #B9B779 #79B997
square
#797BB9 #B9799B #B9B779 #79B997
split-complementary
#797BB9 #B99779 #9BB979
monochromatic
#3F4179 #5456A1 #797BB9 #A1A3CE #C9CAE3

Accessibility & contrast

On white

3.93
#797BB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#797BB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB9
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB9#FFFFFF#000000##000000
##797BB91.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6883BC
Deuteranopia (green-blind)
#657EB7
Tritanopia (blue-blind)
#688791
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb9;
/* rgb */ color: rgb(121, 123, 185);
/* oklch */ color: oklch(60.7% 0.094 281.8);
Tailwind
colors: {
  custom: {
    50: '#a2a1ce',
    500: '#797bb9',
    950: '#000000',
  },
}
SCSS
$custom: #797bb9;
$custom-light: #a2a1ce;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb9",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 185
  },
  "hsl": {
    "h": 238.125,
    "s": 31.373,
    "l": 60
  },
  "oklch": {
    "l": 0.60659,
    "c": 0.09364,
    "h": 281.8
  },
  "luminance": 0.21734
}

Semantic roles & 50–950 ramp

primary
#797BB9
secondary
#D3D2BB
accent
#C460C8
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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