#797CB5#797CB5

#797CB5 is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.7% C 0.086 H 281.2°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#797CB5
RGBrgb(121, 124, 181)
HSLhsl(237, 29%, 59%)
HSVhsv(237, 33%, 71%)
CMYKcmyk(33.1%, 31.5%, 0%, 29%)
CIE-LABlab(53.83, 12.52, -30.41)
CIE-LCHlch(53.83, 32.89, 292.37°)
OKLaboklab(60.67% 0.0167 -0.0846)
OKLCHoklch(60.67% 0.086 281.2)
XYZxyz(23.4310, 21.8157, 46.6834)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CB5 #B5B279
analogous
#799AB5 #797CB5 #9479B5
triadic
#797CB5 #B5797C #7CB579
tetradic
#797CB5 #B5799A #B5B279 #79B594
square
#797CB5 #B5799A #B5B279 #79B594
split-complementary
#797CB5 #B59479 #9AB579
monochromatic
#404274 #56599B #797CB5 #A0A3CB #C8C9E1

Accessibility & contrast

On white

3.92
#797CB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#797CB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CB5
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CB5#FFFFFF#000000##000000
##797CB51.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B83B7
Deuteranopia (green-blind)
#687FB4
Tritanopia (blue-blind)
#698790
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797cb5;
/* rgb */ color: rgb(121, 124, 181);
/* oklch */ color: oklch(60.7% 0.086 281.2);
Tailwind
colors: {
  custom: {
    50: '#a1a1cb',
    500: '#797cb5',
    950: '#000000',
  },
}
SCSS
$custom: #797cb5;
$custom-light: #a1a1cb;
$custom-dark: #000000;
JSON
{
  "hex": "#797cb5",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 181
  },
  "hsl": {
    "h": 237,
    "s": 28.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60668,
    "c": 0.08628,
    "h": 281.2
  },
  "luminance": 0.21816
}

Semantic roles & 50–950 ramp

primary
#797CB5
secondary
#D1CFB9
accent
#C063C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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