#797CD9#797CD9

#797CD9 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.6% C 0.138 H 280.2°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#797CD9
RGBrgb(121, 124, 217)
HSLhsl(238, 56%, 66%)
HSVhsv(238, 44%, 85%)
CMYKcmyk(44.2%, 42.9%, 0%, 14.9%)
CIE-LABlab(55.57, 22.65, -48.15)
CIE-LCHlch(55.57, 53.21, 295.20°)
OKLaboklab(62.57% 0.0245 -0.1361)
OKLCHoklch(62.57% 0.138 280.2)
XYZxyz(27.6135, 23.4887, 68.7110)
Luminance0.2349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CD9 #D9D679
analogous
#79ACD9 #797CD9 #A679D9
triadic
#797CD9 #D9797C #7CD979
tetradic
#797CD9 #D979AC #D9D679 #79D9A6
square
#797CD9 #D979AC #D9D679 #79D9A6
split-complementary
#797CD9 #D9A679 #ACD979
monochromatic
#3033A8 #494DCB #797CD9 #A9ABE7 #D8D9F4

Accessibility & contrast

On white

3.69
#797CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#797CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CD9
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CD9#FFFFFF#000000##000000
##797CD91.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5989DD
Deuteranopia (green-blind)
#5382D7
Tritanopia (blue-blind)
#598FA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797cd9;
/* rgb */ color: rgb(121, 124, 217);
/* oklch */ color: oklch(62.6% 0.138 280.2);
Tailwind
colors: {
  custom: {
    50: '#a4a1e5',
    500: '#797cd9',
    950: '#000000',
  },
}
SCSS
$custom: #797cd9;
$custom-light: #a4a1e5;
$custom-dark: #000000;
JSON
{
  "hex": "#797cd9",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 217
  },
  "hsl": {
    "h": 238.125,
    "s": 55.814,
    "l": 66.275
  },
  "oklch": {
    "l": 0.62573,
    "c": 0.13834,
    "h": 280.2
  },
  "luminance": 0.2349
}

Semantic roles & 50–950 ramp

primary
#797CD9
secondary
#E7E6C7
accent
#BE22C3
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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