#797EE5#797EE5

#797EE5 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.7% C 0.152 H 279.0°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#797EE5
RGBrgb(121, 126, 229)
HSLhsl(237, 68%, 69%)
HSVhsv(237, 47%, 90%)
CMYKcmyk(47.2%, 45%, 0%, 10.2%)
CIE-LABlab(56.73, 25.00, -53.04)
CIE-LCHlch(56.73, 58.64, 295.24°)
OKLaboklab(63.66% 0.0239 -0.1505)
OKLCHoklch(63.66% 0.152 279)
XYZxyz(29.4846, 24.6422, 77.3164)
Luminance0.2464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EE5 #E5E079
analogous
#79B4E5 #797EE5 #AA79E5
triadic
#797EE5 #E5797E #7EE579
tetradic
#797EE5 #E579B4 #E5E079 #79E5AA
square
#797EE5 #E579B4 #E5E079 #79E5AA
split-complementary
#797EE5 #E5AA79 #B4E579
monochromatic
#252CBF #464DDB #797EE5 #ACAFEF #E0E1F9

Accessibility & contrast

On white

3.54
#797EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#797EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EE5
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EE5#FFFFFF#000000##000000
##797EE51.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#548CE9
Deuteranopia (green-blind)
#4B84E3
Tritanopia (blue-blind)
#5294A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797ee5;
/* rgb */ color: rgb(121, 126, 229);
/* oklch */ color: oklch(63.7% 0.152 279.0);
Tailwind
colors: {
  custom: {
    50: '#a5a3ee',
    500: '#797ee5',
    950: '#000000',
  },
}
SCSS
$custom: #797ee5;
$custom-light: #a5a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#797ee5",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 229
  },
  "hsl": {
    "h": 237.222,
    "s": 67.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.63659,
    "c": 0.15236,
    "h": 279
  },
  "luminance": 0.24644
}

Semantic roles & 50–950 ramp

primary
#797EE5
secondary
#EDECCD
accent
#C716CF
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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