#797FCD#797FCD

#797FCD is a light, moderate blue. Relative luminance 0.237; OKLCH L 62.5% C 0.117 H 279.1°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#797FCD
RGBrgb(121, 127, 205)
HSLhsl(236, 46%, 64%)
HSVhsv(236, 41%, 80%)
CMYKcmyk(41%, 38%, 0%, 19.6%)
CIE-LABlab(55.74, 17.40, -41.12)
CIE-LCHlch(55.74, 44.64, 292.94°)
OKLaboklab(62.5% 0.0185 -0.1156)
OKLCHoklch(62.5% 0.117 279.1)
XYZxyz(26.4907, 23.6503, 60.9149)
Luminance0.2365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FCD #CDC779
analogous
#79A9CD #797FCD #9D79CD
triadic
#797FCD #CD797F #7FCD79
tetradic
#797FCD #CD79A9 #CDC779 #79CD9D
square
#797FCD #CD79A9 #CDC779 #79CD9D
split-complementary
#797FCD #CD9D79 #A9CD79
monochromatic
#373E94 #4C54BC #797FCD #A6AADE #D2D4EE

Accessibility & contrast

On white

3.66
#797FCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#797FCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FCD
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FCD#FFFFFF#000000##000000
##797FCD1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6489D0
Deuteranopia (green-blind)
#5F83CB
Tritanopia (blue-blind)
#5F8F9C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797fcd;
/* rgb */ color: rgb(121, 127, 205);
/* oklch */ color: oklch(62.5% 0.117 279.1);
Tailwind
colors: {
  custom: {
    50: '#a3a4dc',
    500: '#797fcd',
    950: '#000000',
  },
}
SCSS
$custom: #797fcd;
$custom-light: #a3a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797fcd",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 205
  },
  "hsl": {
    "h": 235.714,
    "s": 45.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62499,
    "c": 0.11709,
    "h": 279.1
  },
  "luminance": 0.23651
}

Semantic roles & 50–950 ramp

primary
#797FCD
secondary
#E0DEC2
accent
#AF2DB9
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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