#797EC9#797EC9

#797EC9 is a light, moderate blue. Relative luminance 0.232; OKLCH L 62.1% C 0.113 H 279.7°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#797EC9
RGBrgb(121, 126, 201)
HSLhsl(236, 43%, 63%)
HSVhsv(236, 40%, 79%)
CMYKcmyk(39.8%, 37.3%, 0%, 21.2%)
CIE-LABlab(55.28, 16.86, -39.56)
CIE-LCHlch(55.28, 43.01, 293.07°)
OKLaboklab(62.09% 0.0189 -0.1111)
OKLCHoklch(62.09% 0.113 279.7)
XYZxyz(25.8856, 23.2026, 58.3617)
Luminance0.2320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC9 #C9C479
analogous
#79A6C9 #797EC9 #9C79C9
triadic
#797EC9 #C9797E #7EC979
tetradic
#797EC9 #C979A6 #C9C479 #79C99C
square
#797EC9 #C979A6 #C9C479 #79C99C
split-complementary
#797EC9 #C99C79 #A6C979
monochromatic
#393F8E #4D54B7 #797EC9 #A5A8DB #D0D2EC

Accessibility & contrast

On white

3.72
#797EC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#797EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC9
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC9#FFFFFF#000000##000000
##797EC91.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6587CC
Deuteranopia (green-blind)
#6082C7
Tritanopia (blue-blind)
#618D9A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ec9;
/* rgb */ color: rgb(121, 126, 201);
/* oklch */ color: oklch(62.1% 0.113 279.7);
Tailwind
colors: {
  custom: {
    50: '#a3a3da',
    500: '#797ec9',
    950: '#000000',
  },
}
SCSS
$custom: #797ec9;
$custom-light: #a3a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec9",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 201
  },
  "hsl": {
    "h": 236.25,
    "s": 42.553,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62086,
    "c": 0.11271,
    "h": 279.7
  },
  "luminance": 0.23204
}

Semantic roles & 50–950 ramp

primary
#797EC9
secondary
#DDDBC1
accent
#AD30B6
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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