#797DC4#797DC4

#797DC4 is a mid, moderate blue. Relative luminance 0.227; OKLCH L 61.6% C 0.107 H 280.3°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#797DC4
RGBrgb(121, 125, 196)
HSLhsl(237, 39%, 62%)
HSVhsv(237, 38%, 77%)
CMYKcmyk(38.3%, 36.2%, 0%, 23.1%)
CIE-LABlab(54.78, 16.04, -37.51)
CIE-LCHlch(54.78, 40.80, 293.15°)
OKLaboklab(61.62% 0.0191 -0.1051)
OKLCHoklch(61.62% 0.107 280.3)
XYZxyz(25.1797, 22.7167, 55.2719)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC4 #C4C079
analogous
#79A3C4 #797DC4 #9B79C4
triadic
#797DC4 #C4797D #7DC479
tetradic
#797DC4 #C479A3 #C4C079 #79C49B
square
#797DC4 #C479A3 #C4C079 #79C49B
split-complementary
#797DC4 #C49B79 #A3C479
monochromatic
#3B4087 #4F54B1 #797DC4 #A3A6D7 #CECFE9

Accessibility & contrast

On white

3.79
#797DC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#797DC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DC4
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DC4#FFFFFF#000000##000000
##797DC41.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6686C7
Deuteranopia (green-blind)
#6280C2
Tritanopia (blue-blind)
#638B97
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797dc4;
/* rgb */ color: rgb(121, 125, 196);
/* oklch */ color: oklch(61.6% 0.107 280.3);
Tailwind
colors: {
  custom: {
    50: '#a2a2d6',
    500: '#797dc4',
    950: '#000000',
  },
}
SCSS
$custom: #797dc4;
$custom-light: #a2a2d6;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc4",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 196
  },
  "hsl": {
    "h": 236.8,
    "s": 38.86,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61623,
    "c": 0.10687,
    "h": 280.3
  },
  "luminance": 0.22718
}

Semantic roles & 50–950 ramp

primary
#797DC4
secondary
#DAD9BF
accent
#AB34B2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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