#797ED7#797ED7

#797ED7 is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.8% C 0.133 H 279.4°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#797ED7
RGBrgb(121, 126, 215)
HSLhsl(237, 54%, 66%)
HSVhsv(237, 44%, 84%)
CMYKcmyk(43.7%, 41.4%, 0%, 15.7%)
CIE-LABlab(55.98, 20.88, -46.38)
CIE-LCHlch(55.98, 50.86, 294.24°)
OKLaboklab(62.85% 0.0217 -0.131)
OKLCHoklch(62.85% 0.133 279.4)
XYZxyz(27.6081, 23.8917, 67.4337)
Luminance0.2389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ED7 #D7D279
analogous
#79ADD7 #797ED7 #A379D7
triadic
#797ED7 #D7797E #7ED779
tetradic
#797ED7 #D779AD #D7D279 #79D7A3
square
#797ED7 #D779AD #D7D279 #79D7A3
split-complementary
#797ED7 #D7A379 #ADD779
monochromatic
#3137A4 #4A51C9 #797ED7 #A8ABE5 #D7D9F3

Accessibility & contrast

On white

3.63
#797ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#797ED7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ED7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ED7#FFFFFF#000000##000000
##797ED71.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8ADA
Deuteranopia (green-blind)
#5783D5
Tritanopia (blue-blind)
#5A90A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797ed7;
/* rgb */ color: rgb(121, 126, 215);
/* oklch */ color: oklch(62.8% 0.133 279.4);
Tailwind
colors: {
  custom: {
    50: '#a4a3e4',
    500: '#797ed7',
    950: '#000000',
  },
}
SCSS
$custom: #797ed7;
$custom-light: #a4a3e4;
$custom-dark: #000000;
JSON
{
  "hex": "#797ed7",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 215
  },
  "hsl": {
    "h": 236.809,
    "s": 54.023,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62849,
    "c": 0.13275,
    "h": 279.4
  },
  "luminance": 0.23893
}

Semantic roles & 50–950 ramp

primary
#797ED7
secondary
#E5E4C6
accent
#B924C1
background
#FAFAFE
surface
#F4F3FC
border
#CECDD5
text
#100F15
muted
#7F7F84

Preview Lab

Preview with #797ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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