#797CB3#797CB3

#797CB3 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.6% C 0.083 H 281.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#797CB3
RGBrgb(121, 124, 179)
HSLhsl(237, 28%, 59%)
HSVhsv(237, 32%, 70%)
CMYKcmyk(32.4%, 30.7%, 0%, 29.8%)
CIE-LABlab(53.74, 11.98, -29.40)
CIE-LCHlch(53.74, 31.75, 292.17°)
OKLaboklab(60.57% 0.0162 -0.0817)
OKLCHoklch(60.57% 0.083 281.2)
XYZxyz(23.2273, 21.7342, 45.6104)
Luminance0.2173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CB3 #B3B079
analogous
#7999B3 #797CB3 #9379B3
triadic
#797CB3 #B3797C #7CB379
tetradic
#797CB3 #B37999 #B3B079 #79B393
square
#797CB3 #B37999 #B3B079 #79B393
split-complementary
#797CB3 #B39379 #99B379
monochromatic
#404371 #565A98 #797CB3 #A0A2C9 #C7C8DF

Accessibility & contrast

On white

3.93
#797CB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#797CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CB3
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CB3#FFFFFF#000000##000000
##797CB31.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C83B5
Deuteranopia (green-blind)
#697FB2
Tritanopia (blue-blind)
#6A8690
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797cb3;
/* rgb */ color: rgb(121, 124, 179);
/* oklch */ color: oklch(60.6% 0.083 281.2);
Tailwind
colors: {
  custom: {
    50: '#a1a1ca',
    500: '#797cb3',
    950: '#000000',
  },
}
SCSS
$custom: #797cb3;
$custom-light: #a1a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797cb3",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 179
  },
  "hsl": {
    "h": 236.897,
    "s": 27.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60572,
    "c": 0.08331,
    "h": 281.2
  },
  "luminance": 0.21735
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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