#797DD7#797DD7

#797DD7 is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.7% C 0.134 H 279.9°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#797DD7
RGBrgb(121, 125, 215)
HSLhsl(237, 54%, 66%)
HSVhsv(237, 44%, 84%)
CMYKcmyk(43.7%, 41.9%, 0%, 15.7%)
CIE-LABlab(55.72, 21.47, -46.78)
CIE-LCHlch(55.72, 51.48, 294.66°)
OKLaboklab(62.65% 0.023 -0.1322)
OKLCHoklch(62.65% 0.134 279.9)
XYZxyz(27.4809, 23.6372, 67.3912)
Luminance0.2364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DD7 #D7D379
analogous
#79ACD7 #797DD7 #A479D7
triadic
#797DD7 #D7797D #7DD779
tetradic
#797DD7 #D779AC #D7D379 #79D7A4
square
#797DD7 #D779AC #D7D379 #79D7A4
split-complementary
#797DD7 #D7A479 #ACD779
monochromatic
#3136A4 #4A4FC9 #797DD7 #A8ABE5 #D7D8F3

Accessibility & contrast

On white

3.67
#797DD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797DD7#FFFFFF#000000##000000
##797DD71.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B89DA
Deuteranopia (green-blind)
#5582D5
Tritanopia (blue-blind)
#5A8FA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797dd7;
/* rgb */ color: rgb(121, 125, 215);
/* oklch */ color: oklch(62.7% 0.134 279.9);
Tailwind
colors: {
  custom: {
    50: '#a4a2e4',
    500: '#797dd7',
    950: '#000000',
  },
}
SCSS
$custom: #797dd7;
$custom-light: #a4a2e4;
$custom-dark: #000000;
JSON
{
  "hex": "#797dd7",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 215
  },
  "hsl": {
    "h": 237.447,
    "s": 54.023,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62653,
    "c": 0.13414,
    "h": 279.9
  },
  "luminance": 0.23638
}

Semantic roles & 50–950 ramp

primary
#797DD7
secondary
#E5E4C6
accent
#BB24C1
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F15
muted
#7F7E84

Preview Lab

Preview with #797DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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