#797DBE#797DBE

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

Color values

HEX#797DBE
RGBrgb(121, 125, 190)
HSLhsl(237, 35%, 61%)
HSVhsv(237, 36%, 75%)
CMYKcmyk(36.3%, 34.2%, 0%, 25.5%)
CIE-LABlab(54.50, 14.37, -34.52)
CIE-LCHlch(54.50, 37.40, 292.60°)
OKLaboklab(61.32% 0.0177 -0.0965)
OKLCHoklch(61.32% 0.098 280.4)
XYZxyz(24.5104, 22.4490, 51.7469)
Luminance0.2245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DBE #BEBA79
analogous
#799FBE #797DBE #9779BE
triadic
#797DBE #BE797D #7DBE79
tetradic
#797DBE #BE799F #BEBA79 #79BE97
square
#797DBE #BE799F #BEBA79 #79BE97
split-complementary
#797DBE #BE9779 #9FBE79
monochromatic
#3E417F #5257A8 #797DBE #A2A5D2 #CBCDE6

Accessibility & contrast

On white

3.83
#797DBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797DBE#FFFFFF#000000##000000
##797DBE1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6885C1
Deuteranopia (green-blind)
#6580BC
Tritanopia (blue-blind)
#668995
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797dbe;
/* rgb */ color: rgb(121, 125, 190);
/* oklch */ color: oklch(61.3% 0.098 280.4);
Tailwind
colors: {
  custom: {
    50: '#a2a2d2',
    500: '#797dbe',
    950: '#000000',
  },
}
SCSS
$custom: #797dbe;
$custom-light: #a2a2d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797dbe",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 190
  },
  "hsl": {
    "h": 236.522,
    "s": 34.673,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61317,
    "c": 0.09812,
    "h": 280.4
  },
  "luminance": 0.2245
}

Semantic roles & 50–950 ramp

primary
#797DBE
secondary
#D6D5BC
accent
#A738AE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #797DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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