#797BC9#797BC9

#797BC9 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.5% C 0.117 H 281.3°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#797BC9
RGBrgb(121, 123, 201)
HSLhsl(239, 43%, 63%)
HSVhsv(239, 40%, 79%)
CMYKcmyk(39.8%, 38.8%, 0%, 21.2%)
CIE-LABlab(54.50, 18.64, -40.80)
CIE-LCHlch(54.50, 44.85, 294.56°)
OKLaboklab(61.49% 0.0228 -0.1147)
OKLCHoklch(61.49% 0.117 281.3)
XYZxyz(25.5077, 22.4469, 58.2357)
Luminance0.2245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC9 #C9C779
analogous
#79A3C9 #797BC9 #9F79C9
triadic
#797BC9 #C9797B #7BC979
tetradic
#797BC9 #C979A3 #C9C779 #79C99F
square
#797BC9 #C979A3 #C9C779 #79C99F
split-complementary
#797BC9 #C99F79 #A3C979
monochromatic
#393B8E #4D50B7 #797BC9 #A5A6DB #D0D1EC

Accessibility & contrast

On white

3.83
#797BC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#797BC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BC9
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BC9#FFFFFF#000000##000000
##797BC91.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6085CC
Deuteranopia (green-blind)
#5C80C7
Tritanopia (blue-blind)
#618A98
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797bc9;
/* rgb */ color: rgb(121, 123, 201);
/* oklch */ color: oklch(61.5% 0.117 281.3);
Tailwind
colors: {
  custom: {
    50: '#a3a1da',
    500: '#797bc9',
    950: '#000000',
  },
}
SCSS
$custom: #797bc9;
$custom-light: #a3a1da;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc9",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 201
  },
  "hsl": {
    "h": 238.5,
    "s": 42.553,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61486,
    "c": 0.11696,
    "h": 281.3
  },
  "luminance": 0.22448
}

Semantic roles & 50–950 ramp

primary
#797BC9
secondary
#DDDDC1
accent
#B230B6
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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