#797EBB#797EBB

#797EBB is a mid, moderate blue. Relative luminance 0.226; OKLCH L 61.4% C 0.092 H 279.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#797EBB
RGBrgb(121, 126, 187)
HSLhsl(235, 33%, 60%)
HSVhsv(235, 35%, 73%)
CMYKcmyk(35.3%, 32.6%, 0%, 26.7%)
CIE-LABlab(54.63, 12.96, -32.61)
CIE-LCHlch(54.63, 35.09, 291.67°)
OKLaboklab(61.37% 0.0156 -0.091)
OKLCHoklch(61.37% 0.092 279.7)
XYZxyz(24.3131, 22.5737, 50.0802)
Luminance0.2258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EBB #BBB679
analogous
#799FBB #797EBB #9579BB
triadic
#797EBB #BB797E #7EBB79
tetradic
#797EBB #BB799F #BBB679 #79BB95
square
#797EBB #BB799F #BBB679 #79BB95
split-complementary
#797EBB #BB9579 #9FBB79
monochromatic
#3E437B #5359A4 #797EBB #A2A5D0 #CACCE4

Accessibility & contrast

On white

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

On black

5.52
#797EBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EBB
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EBB#FFFFFF#000000##000000
##797EBB1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B85BE
Deuteranopia (green-blind)
#6780BA
Tritanopia (blue-blind)
#678A94
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ebb;
/* rgb */ color: rgb(121, 126, 187);
/* oklch */ color: oklch(61.4% 0.092 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3cf',
    500: '#797ebb',
    950: '#000000',
  },
}
SCSS
$custom: #797ebb;
$custom-light: #a2a3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797ebb",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 187
  },
  "hsl": {
    "h": 235.455,
    "s": 32.673,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61372,
    "c": 0.09228,
    "h": 279.7
  },
  "luminance": 0.22575
}

Semantic roles & 50–950 ramp

primary
#797EBB
secondary
#D5D3BB
accent
#A33AAB
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #797EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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