#797BB5#797BB5

#797BB5 is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.5% C 0.088 H 281.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#797BB5
RGBrgb(121, 123, 181)
HSLhsl(238, 29%, 59%)
HSVhsv(238, 33%, 71%)
CMYKcmyk(33.1%, 32%, 0%, 29%)
CIE-LABlab(53.56, 13.11, -30.83)
CIE-LCHlch(53.56, 33.50, 293.04°)
OKLaboklab(60.46% 0.0181 -0.0858)
OKLCHoklch(60.46% 0.088 281.9)
XYZxyz(23.3063, 21.5664, 46.6419)
Luminance0.2157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB5 #B5B379
analogous
#7999B5 #797BB5 #9579B5
triadic
#797BB5 #B5797B #7BB579
tetradic
#797BB5 #B57999 #B5B379 #79B595
square
#797BB5 #B57999 #B5B379 #79B595
split-complementary
#797BB5 #B59579 #99B579
monochromatic
#404274 #56589B #797BB5 #A0A2CB #C8C9E1

Accessibility & contrast

On white

3.95
#797BB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#797BB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB5#FFFFFF#000000##000000
##797BB51.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A82B7
Deuteranopia (green-blind)
#677EB4
Tritanopia (blue-blind)
#698690
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb5;
/* rgb */ color: rgb(121, 123, 181);
/* oklch */ color: oklch(60.5% 0.088 281.9);
Tailwind
colors: {
  custom: {
    50: '#a1a1cb',
    500: '#797bb5',
    950: '#000000',
  },
}
SCSS
$custom: #797bb5;
$custom-light: #a1a1cb;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb5",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 181
  },
  "hsl": {
    "h": 238,
    "s": 28.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60462,
    "c": 0.08773,
    "h": 281.9
  },
  "luminance": 0.21567
}

Semantic roles & 50–950 ramp

primary
#797BB5
secondary
#D1D0B9
accent
#C263C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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