#797EF5#797EF5

#797EF5 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.6% C 0.174 H 278.5°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#797EF5
RGBrgb(121, 126, 245)
HSLhsl(238, 86%, 72%)
HSVhsv(238, 51%, 96%)
CMYKcmyk(50.6%, 48.6%, 0%, 3.9%)
CIE-LABlab(57.63, 29.80, -60.48)
CIE-LCHlch(57.63, 67.43, 296.23°)
OKLaboklab(64.64% 0.0258 -0.1723)
OKLCHoklch(64.64% 0.174 278.5)
XYZxyz(31.8223, 25.5773, 89.6286)
Luminance0.2558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF5 #F5F079
analogous
#79BCF5 #797EF5 #B279F5
triadic
#797EF5 #F5797E #7EF579
tetradic
#797EF5 #F579BC #F5F079 #79F5B2
square
#797EF5 #F579BC #F5F079 #79F5B2
split-complementary
#797EF5 #F5B279 #BCF579
monochromatic
#1119E3 #4047F1 #797EF5 #B2B5F9 #E3E4FD

Accessibility & contrast

On white

3.43
#797EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#797EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EF5
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EF5#FFFFFF#000000##000000
##797EF51.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#468FF9
Deuteranopia (green-blind)
#3A86F2
Tritanopia (blue-blind)
#4698AE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797ef5;
/* rgb */ color: rgb(121, 126, 245);
/* oklch */ color: oklch(64.6% 0.174 278.5);
Tailwind
colors: {
  custom: {
    50: '#a7a3f9',
    500: '#797ef5',
    950: '#000000',
  },
}
SCSS
$custom: #797ef5;
$custom-light: #a7a3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef5",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 237.581,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6464,
    "c": 0.17424,
    "h": 278.5
  },
  "luminance": 0.25579
}

Semantic roles & 50–950 ramp

primary
#797EF5
secondary
#F5F3D5
accent
#DA03E3
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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