#797FE5#797FE5

#797FE5 is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.9% C 0.151 H 278.7°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#797FE5
RGBrgb(121, 127, 229)
HSLhsl(237, 68%, 69%)
HSVhsv(237, 47%, 90%)
CMYKcmyk(47.2%, 44.5%, 0%, 10.2%)
CIE-LABlab(56.98, 24.41, -52.64)
CIE-LCHlch(56.98, 58.02, 294.87°)
OKLaboklab(63.85% 0.0228 -0.1493)
OKLCHoklch(63.85% 0.151 278.7)
XYZxyz(29.6131, 24.8993, 77.3592)
Luminance0.2490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FE5 #E5DF79
analogous
#79B5E5 #797FE5 #A979E5
triadic
#797FE5 #E5797F #7FE579
tetradic
#797FE5 #E579B5 #E5DF79 #79E5A9
square
#797FE5 #E579B5 #E5DF79 #79E5A9
split-complementary
#797FE5 #E5A979 #B5E579
monochromatic
#252EBF #464EDB #797FE5 #ACB0EF #E0E1F9

Accessibility & contrast

On white

3.51
#797FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#797FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FE5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FE5#FFFFFF#000000##000000
##797FE51.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#568DE9
Deuteranopia (green-blind)
#4D85E3
Tritanopia (blue-blind)
#5294A7
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797fe5;
/* rgb */ color: rgb(121, 127, 229);
/* oklch */ color: oklch(63.9% 0.151 278.7);
Tailwind
colors: {
  custom: {
    50: '#a5a4ee',
    500: '#797fe5',
    950: '#000000',
  },
}
SCSS
$custom: #797fe5;
$custom-light: #a5a4ee;
$custom-dark: #000000;
JSON
{
  "hex": "#797fe5",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 229
  },
  "hsl": {
    "h": 236.667,
    "s": 67.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.63851,
    "c": 0.15101,
    "h": 278.7
  },
  "luminance": 0.24901
}

Semantic roles & 50–950 ramp

primary
#797FE5
secondary
#EDEBCD
accent
#C516CF
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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