#797FE4#797FE4

#797FE4 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.8% C 0.150 H 278.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#797FE4
RGBrgb(121, 127, 228)
HSLhsl(237, 66%, 68%)
HSVhsv(237, 47%, 89%)
CMYKcmyk(46.9%, 44.3%, 0%, 10.6%)
CIE-LABlab(56.92, 24.11, -52.17)
CIE-LCHlch(56.92, 57.47, 294.80°)
OKLaboklab(63.79% 0.0226 -0.1479)
OKLCHoklch(63.79% 0.15 278.7)
XYZxyz(29.4738, 24.8436, 76.6260)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FE4 #E4DE79
analogous
#79B4E4 #797FE4 #A879E4
triadic
#797FE4 #E4797F #7FE479
tetradic
#797FE4 #E479B4 #E4DE79 #79E4A8
square
#797FE4 #E479B4 #E4DE79 #79E4A8
split-complementary
#797FE4 #E4A879 #B4E479
monochromatic
#262EBD #464EDA #797FE4 #ACB0EE #DFE0F9

Accessibility & contrast

On white

3.52
#797FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#797FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FE4
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FE4#FFFFFF#000000##000000
##797FE41.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#568DE8
Deuteranopia (green-blind)
#4E85E2
Tritanopia (blue-blind)
#5294A6
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797fe4;
/* rgb */ color: rgb(121, 127, 228);
/* oklch */ color: oklch(63.8% 0.150 278.7);
Tailwind
colors: {
  custom: {
    50: '#a5a4ed',
    500: '#797fe4',
    950: '#000000',
  },
}
SCSS
$custom: #797fe4;
$custom-light: #a5a4ed;
$custom-dark: #000000;
JSON
{
  "hex": "#797fe4",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 228
  },
  "hsl": {
    "h": 236.636,
    "s": 66.46,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63791,
    "c": 0.14963,
    "h": 278.7
  },
  "luminance": 0.24845
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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