#797FF5#797FF5

#797FF5 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.8% C 0.173 H 278.2°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#797FF5
RGBrgb(121, 127, 245)
HSLhsl(237, 86%, 72%)
HSVhsv(237, 51%, 96%)
CMYKcmyk(50.6%, 48.2%, 0%, 3.9%)
CIE-LABlab(57.88, 29.21, -60.09)
CIE-LCHlch(57.88, 66.81, 295.93°)
OKLaboklab(64.83% 0.0247 -0.1711)
OKLCHoklch(64.83% 0.173 278.2)
XYZxyz(31.9508, 25.8344, 89.6714)
Luminance0.2584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FF5 #F5EF79
analogous
#79BDF5 #797FF5 #B179F5
triadic
#797FF5 #F5797F #7FF579
tetradic
#797FF5 #F579BD #F5EF79 #79F5B1
square
#797FF5 #F579BD #F5EF79 #79F5B1
split-complementary
#797FF5 #F5B179 #BDF579
monochromatic
#111BE3 #4049F1 #797FF5 #B2B5F9 #E3E4FD

Accessibility & contrast

On white

3.41
#797FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#797FF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FF5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FF5#FFFFFF#000000##000000
##797FF51.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4890F9
Deuteranopia (green-blind)
#3C86F2
Tritanopia (blue-blind)
#4699AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ff5;
/* rgb */ color: rgb(121, 127, 245);
/* oklch */ color: oklch(64.8% 0.173 278.2);
Tailwind
colors: {
  custom: {
    50: '#a7a4f9',
    500: '#797ff5',
    950: '#000000',
  },
}
SCSS
$custom: #797ff5;
$custom-light: #a7a4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#797ff5",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 245
  },
  "hsl": {
    "h": 237.097,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64826,
    "c": 0.17293,
    "h": 278.2
  },
  "luminance": 0.25836
}

Semantic roles & 50–950 ramp

primary
#797FF5
secondary
#F5F3D5
accent
#D803E3
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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