#797EB5#797EB5

#797EB5 is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.1% C 0.083 H 279.6°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#797EB5
RGBrgb(121, 126, 181)
HSLhsl(235, 29%, 59%)
HSVhsv(235, 33%, 71%)
CMYKcmyk(33.1%, 30.4%, 0%, 29%)
CIE-LABlab(54.37, 11.33, -29.58)
CIE-LCHlch(54.37, 31.67, 290.96°)
OKLaboklab(61.08% 0.0139 -0.0822)
OKLCHoklch(61.08% 0.083 279.6)
XYZxyz(23.6842, 22.3221, 46.7678)
Luminance0.2232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EB5 #B5B079
analogous
#799CB5 #797EB5 #9279B5
triadic
#797EB5 #B5797E #7EB579
tetradic
#797EB5 #B5799C #B5B079 #79B592
square
#797EB5 #B5799C #B5B079 #79B592
split-complementary
#797EB5 #B59279 #9CB579
monochromatic
#404474 #565B9B #797EB5 #A0A4CB #C8CAE1

Accessibility & contrast

On white

3.84
#797EB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#797EB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EB5
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EB5#FFFFFF#000000##000000
##797EB51.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D84B7
Deuteranopia (green-blind)
#6A80B4
Tritanopia (blue-blind)
#698892
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797eb5;
/* rgb */ color: rgb(121, 126, 181);
/* oklch */ color: oklch(61.1% 0.083 279.6);
Tailwind
colors: {
  custom: {
    50: '#a1a3cb',
    500: '#797eb5',
    950: '#000000',
  },
}
SCSS
$custom: #797eb5;
$custom-light: #a1a3cb;
$custom-dark: #000000;
JSON
{
  "hex": "#797eb5",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 181
  },
  "hsl": {
    "h": 235,
    "s": 28.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61082,
    "c": 0.08342,
    "h": 279.6
  },
  "luminance": 0.22323
}

Semantic roles & 50–950 ramp

primary
#797EB5
secondary
#D1CFB9
accent
#BD63C5
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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