#797DB4#797DB4

#797DB4 is a mid, moderate blue. Relative luminance 0.220; OKLCH L 60.8% C 0.083 H 280.4°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#797DB4
RGBrgb(121, 125, 180)
HSLhsl(236, 28%, 59%)
HSVhsv(236, 33%, 71%)
CMYKcmyk(32.8%, 30.6%, 0%, 29.4%)
CIE-LABlab(54.06, 11.66, -29.49)
CIE-LCHlch(54.06, 31.71, 291.57°)
OKLaboklab(60.83% 0.0151 -0.082)
OKLCHoklch(60.83% 0.083 280.4)
XYZxyz(23.4547, 22.0267, 46.1870)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DB4 #B4B079
analogous
#799BB4 #797DB4 #9379B4
triadic
#797DB4 #B4797D #7DB479
tetradic
#797DB4 #B4799B #B4B079 #79B493
square
#797DB4 #B4799B #B4B079 #79B493
split-complementary
#797DB4 #B49379 #9BB479
monochromatic
#404473 #565B9A #797DB4 #A0A3CA #C7C9E0

Accessibility & contrast

On white

3.89
#797DB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#797DB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DB4
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DB4#FFFFFF#000000##000000
##797DB41.003.895.415.41
#FFFFFF3.891.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D83B6
Deuteranopia (green-blind)
#697FB3
Tritanopia (blue-blind)
#6A8791
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797db4;
/* rgb */ color: rgb(121, 125, 180);
/* oklch */ color: oklch(60.8% 0.083 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a2ca',
    500: '#797db4',
    950: '#000000',
  },
}
SCSS
$custom: #797db4;
$custom-light: #a1a2ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797db4",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 180
  },
  "hsl": {
    "h": 235.932,
    "s": 28.23,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60827,
    "c": 0.08336,
    "h": 280.4
  },
  "luminance": 0.22027
}

Semantic roles & 50–950 ramp

primary
#797DB4
secondary
#D0CEB9
accent
#BE63C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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