#797CB8#797CB8

#797CB8 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.8% C 0.091 H 281.1°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#797CB8
RGBrgb(121, 124, 184)
HSLhsl(237, 31%, 60%)
HSVhsv(237, 34%, 72%)
CMYKcmyk(34.2%, 32.6%, 0%, 27.8%)
CIE-LABlab(53.96, 13.33, -31.93)
CIE-LCHlch(53.96, 34.60, 292.66°)
OKLaboklab(60.81% 0.0175 -0.089)
OKLCHoklch(60.81% 0.091 281.1)
XYZxyz(23.7421, 21.9402, 48.3221)
Luminance0.2194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CB8 #B8B579
analogous
#799CB8 #797CB8 #9679B8
triadic
#797CB8 #B8797C #7CB879
tetradic
#797CB8 #B8799C #B8B579 #79B896
square
#797CB8 #B8799C #B8B579 #79B896
split-complementary
#797CB8 #B89679 #9CB879
monochromatic
#3F4277 #54589F #797CB8 #A1A3CD #C9CAE2

Accessibility & contrast

On white

3.90
#797CB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#797CB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CB8
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CB8#FFFFFF#000000##000000
##797CB81.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A83BA
Deuteranopia (green-blind)
#677FB7
Tritanopia (blue-blind)
#688792
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797cb8;
/* rgb */ color: rgb(121, 124, 184);
/* oklch */ color: oklch(60.8% 0.091 281.1);
Tailwind
colors: {
  custom: {
    50: '#a1a1cd',
    500: '#797cb8',
    950: '#000000',
  },
}
SCSS
$custom: #797cb8;
$custom-light: #a1a1cd;
$custom-dark: #000000;
JSON
{
  "hex": "#797cb8",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 184
  },
  "hsl": {
    "h": 237.143,
    "s": 30.732,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60814,
    "c": 0.09072,
    "h": 281.1
  },
  "luminance": 0.21941
}

Semantic roles & 50–950 ramp

primary
#797CB8
secondary
#D3D1BA
accent
#C261C7
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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