#797BB3#797BB3

#797BB3 is a mid, moderate blue. Relative luminance 0.215; OKLCH L 60.4% C 0.085 H 282.0°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#797BB3
RGBrgb(121, 123, 179)
HSLhsl(238, 28%, 59%)
HSVhsv(238, 32%, 70%)
CMYKcmyk(32.4%, 31.3%, 0%, 29.8%)
CIE-LABlab(53.48, 12.57, -29.81)
CIE-LCHlch(53.48, 32.36, 292.87°)
OKLaboklab(60.37% 0.0176 -0.0829)
OKLCHoklch(60.37% 0.085 282)
XYZxyz(23.1026, 21.4849, 45.5689)
Luminance0.2149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB3 #B3B179
analogous
#7998B3 #797BB3 #9479B3
triadic
#797BB3 #B3797B #7BB379
tetradic
#797BB3 #B37998 #B3B179 #79B394
square
#797BB3 #B37998 #B3B179 #79B394
split-complementary
#797BB3 #B39479 #98B379
monochromatic
#404271 #565998 #797BB3 #A0A1C9 #C7C8DF

Accessibility & contrast

On white

3.96
#797BB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#797BB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB3
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB3#FFFFFF#000000##000000
##797BB31.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A82B5
Deuteranopia (green-blind)
#687EB2
Tritanopia (blue-blind)
#6A858F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb3;
/* rgb */ color: rgb(121, 123, 179);
/* oklch */ color: oklch(60.4% 0.085 282.0);
Tailwind
colors: {
  custom: {
    50: '#a1a1ca',
    500: '#797bb3',
    950: '#000000',
  },
}
SCSS
$custom: #797bb3;
$custom-light: #a1a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb3",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 179
  },
  "hsl": {
    "h": 237.931,
    "s": 27.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60366,
    "c": 0.08476,
    "h": 282
  },
  "luminance": 0.21486
}

Semantic roles & 50–950 ramp

primary
#797BB3
secondary
#CFCFB8
accent
#C164C4
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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