#797DC9#797DC9

#797DC9 is a mid, moderate blue. Relative luminance 0.229; OKLCH L 61.9% C 0.114 H 280.2°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#797DC9
RGBrgb(121, 125, 201)
HSLhsl(237, 43%, 63%)
HSVhsv(237, 40%, 79%)
CMYKcmyk(39.8%, 37.8%, 0%, 21.2%)
CIE-LABlab(55.02, 17.45, -39.98)
CIE-LCHlch(55.02, 43.62, 293.58°)
OKLaboklab(61.89% 0.0202 -0.1123)
OKLCHoklch(61.89% 0.114 280.2)
XYZxyz(25.7583, 22.9482, 58.3193)
Luminance0.2295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC9 #C9C579
analogous
#79A5C9 #797DC9 #9D79C9
triadic
#797DC9 #C9797D #7DC979
tetradic
#797DC9 #C979A5 #C9C579 #79C99D
square
#797DC9 #C979A5 #C9C579 #79C99D
split-complementary
#797DC9 #C99D79 #A5C979
monochromatic
#393E8E #4D53B7 #797DC9 #A5A7DB #D0D2EC

Accessibility & contrast

On white

3.76
#797DC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#797DC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DC9
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DC9#FFFFFF#000000##000000
##797DC91.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6387CC
Deuteranopia (green-blind)
#5F81C7
Tritanopia (blue-blind)
#618C99
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797dc9;
/* rgb */ color: rgb(121, 125, 201);
/* oklch */ color: oklch(61.9% 0.114 280.2);
Tailwind
colors: {
  custom: {
    50: '#a3a2da',
    500: '#797dc9',
    950: '#000000',
  },
}
SCSS
$custom: #797dc9;
$custom-light: #a3a2da;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc9",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 201
  },
  "hsl": {
    "h": 237,
    "s": 42.553,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61885,
    "c": 0.11412,
    "h": 280.2
  },
  "luminance": 0.22949
}

Semantic roles & 50–950 ramp

primary
#797DC9
secondary
#DDDCC1
accent
#AF30B6
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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