#797DC7#797DC7

#797DC7 is a mid, moderate blue. Relative luminance 0.229; OKLCH L 61.8% C 0.111 H 280.2°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#797DC7
RGBrgb(121, 125, 199)
HSLhsl(237, 41%, 63%)
HSVhsv(237, 39%, 78%)
CMYKcmyk(39.2%, 37.2%, 0%, 22%)
CIE-LABlab(54.92, 16.88, -38.99)
CIE-LCHlch(54.92, 42.49, 293.41°)
OKLaboklab(61.78% 0.0198 -0.1094)
OKLCHoklch(61.78% 0.111 280.2)
XYZxyz(25.5246, 22.8547, 57.0883)
Luminance0.2286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC7 #C7C379
analogous
#79A4C7 #797DC7 #9C79C7
triadic
#797DC7 #C7797D #7DC779
tetradic
#797DC7 #C779A4 #C7C379 #79C79C
square
#797DC7 #C779A4 #C7C379 #79C79C
split-complementary
#797DC7 #C79C79 #A4C779
monochromatic
#3A3E8B #4E53B5 #797DC7 #A4A7D9 #CFD1EB

Accessibility & contrast

On white

3.77
#797DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#797DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DC7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DC7#FFFFFF#000000##000000
##797DC71.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6486CA
Deuteranopia (green-blind)
#6081C5
Tritanopia (blue-blind)
#628B98
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797dc7;
/* rgb */ color: rgb(121, 125, 199);
/* oklch */ color: oklch(61.8% 0.111 280.2);
Tailwind
colors: {
  custom: {
    50: '#a3a2d8',
    500: '#797dc7',
    950: '#000000',
  },
}
SCSS
$custom: #797dc7;
$custom-light: #a3a2d8;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc7",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 199
  },
  "hsl": {
    "h": 236.923,
    "s": 41.053,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6178,
    "c": 0.11122,
    "h": 280.2
  },
  "luminance": 0.22856
}

Semantic roles & 50–950 ramp

primary
#797DC7
secondary
#DCDBC0
accent
#AD31B4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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