#797DB3#797DB3

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

Color values

HEX#797DB3
RGBrgb(121, 125, 179)
HSLhsl(236, 28%, 59%)
HSVhsv(236, 32%, 70%)
CMYKcmyk(32.4%, 30.2%, 0%, 29.8%)
CIE-LABlab(54.01, 11.39, -28.98)
CIE-LCHlch(54.01, 31.14, 291.45°)
OKLaboklab(60.78% 0.0148 -0.0805)
OKLCHoklch(60.78% 0.082 280.4)
XYZxyz(23.3532, 21.9861, 45.6524)
Luminance0.2199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DB3 #B3AF79
analogous
#799AB3 #797DB3 #9279B3
triadic
#797DB3 #B3797D #7DB379
tetradic
#797DB3 #B3799A #B3AF79 #79B392
square
#797DB3 #B3799A #B3AF79 #79B392
split-complementary
#797DB3 #B39279 #9AB379
monochromatic
#404471 #565B98 #797DB3 #A0A3C9 #C7C9DF

Accessibility & contrast

On white

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

On black

5.40
#797DB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DB3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DB3#FFFFFF#000000##000000
##797DB31.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D83B5
Deuteranopia (green-blind)
#6A7FB2
Tritanopia (blue-blind)
#6A8790
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797db3;
/* rgb */ color: rgb(121, 125, 179);
/* oklch */ color: oklch(60.8% 0.082 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a2ca',
    500: '#797db3',
    950: '#000000',
  },
}
SCSS
$custom: #797db3;
$custom-light: #a1a2ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797db3",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 179
  },
  "hsl": {
    "h": 235.862,
    "s": 27.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.6078,
    "c": 0.08187,
    "h": 280.4
  },
  "luminance": 0.21987
}

Semantic roles & 50–950 ramp

primary
#797DB3
secondary
#CFCEB8
accent
#BD64C4
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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