#797EE4#797EE4

#797EE4 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.6% C 0.151 H 279.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#797EE4
RGBrgb(121, 126, 228)
HSLhsl(237, 66%, 68%)
HSVhsv(237, 47%, 89%)
CMYKcmyk(46.9%, 44.7%, 0%, 10.6%)
CIE-LABlab(56.67, 24.70, -52.57)
CIE-LCHlch(56.67, 58.09, 295.17°)
OKLaboklab(63.6% 0.0238 -0.1491)
OKLCHoklch(63.6% 0.151 279.1)
XYZxyz(29.3453, 24.5866, 76.5832)
Luminance0.2459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EE4 #E4DF79
analogous
#79B3E4 #797EE4 #A979E4
triadic
#797EE4 #E4797E #7EE479
tetradic
#797EE4 #E479B3 #E4DF79 #79E4A9
square
#797EE4 #E479B3 #E4DF79 #79E4A9
split-complementary
#797EE4 #E4A979 #B3E479
monochromatic
#262DBD #464DDA #797EE4 #ACAFEE #DFE0F9

Accessibility & contrast

On white

3.55
#797EE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#797EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EE4
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EE4#FFFFFF#000000##000000
##797EE41.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#558CE8
Deuteranopia (green-blind)
#4C84E2
Tritanopia (blue-blind)
#5293A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797ee4;
/* rgb */ color: rgb(121, 126, 228);
/* oklch */ color: oklch(63.6% 0.151 279.1);
Tailwind
colors: {
  custom: {
    50: '#a5a3ed',
    500: '#797ee4',
    950: '#000000',
  },
}
SCSS
$custom: #797ee4;
$custom-light: #a5a3ed;
$custom-dark: #000000;
JSON
{
  "hex": "#797ee4",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 228
  },
  "hsl": {
    "h": 237.196,
    "s": 66.46,
    "l": 68.431
  },
  "oklch": {
    "l": 0.636,
    "c": 0.15098,
    "h": 279.1
  },
  "luminance": 0.24588
}

Semantic roles & 50–950 ramp

primary
#797EE4
secondary
#ECEBCC
accent
#C617CE
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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