#797DD2#797DD2

#797DD2 is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.4% C 0.127 H 280.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#797DD2
RGBrgb(121, 125, 210)
HSLhsl(237, 50%, 65%)
HSVhsv(237, 42%, 82%)
CMYKcmyk(42.4%, 40.5%, 0%, 17.6%)
CIE-LABlab(55.47, 20.02, -44.37)
CIE-LCHlch(55.47, 48.68, 294.29°)
OKLaboklab(62.37% 0.022 -0.1251)
OKLCHoklch(62.37% 0.127 280)
XYZxyz(26.8482, 23.3841, 64.0592)
Luminance0.2339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DD2 #D2CE79
analogous
#79AAD2 #797DD2 #A179D2
triadic
#797DD2 #D2797D #7DD279
tetradic
#797DD2 #D279AA #D2CE79 #79D2A1
square
#797DD2 #D279AA #D2CE79 #79D2A1
split-complementary
#797DD2 #D2A179 #AAD279
monochromatic
#34399C #4B51C3 #797DD2 #A7A9E1 #D5D6F1

Accessibility & contrast

On white

3.70
#797DD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#797DD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DD2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DD2#FFFFFF#000000##000000
##797DD21.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E88D5
Deuteranopia (green-blind)
#5982D0
Tritanopia (blue-blind)
#5D8E9D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797dd2;
/* rgb */ color: rgb(121, 125, 210);
/* oklch */ color: oklch(62.4% 0.127 280.0);
Tailwind
colors: {
  custom: {
    50: '#a4a2e0',
    500: '#797dd2',
    950: '#000000',
  },
}
SCSS
$custom: #797dd2;
$custom-light: #a4a2e0;
$custom-dark: #000000;
JSON
{
  "hex": "#797dd2",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 210
  },
  "hsl": {
    "h": 237.303,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62373,
    "c": 0.12704,
    "h": 280
  },
  "luminance": 0.23385
}

Semantic roles & 50–950 ramp

primary
#797DD2
secondary
#E3E1C4
accent
#B628BD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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