#797DF5#797DF5

#797DF5 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.5% C 0.176 H 278.8°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#797DF5
RGBrgb(121, 125, 245)
HSLhsl(238, 86%, 72%)
HSVhsv(238, 51%, 96%)
CMYKcmyk(50.6%, 49%, 0%, 3.9%)
CIE-LABlab(57.39, 30.40, -60.88)
CIE-LCHlch(57.39, 68.04, 296.53°)
OKLaboklab(64.46% 0.0269 -0.1735)
OKLCHoklch(64.46% 0.176 278.8)
XYZxyz(31.6951, 25.3229, 89.5862)
Luminance0.2532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF5 #F5F179
analogous
#79BBF5 #797DF5 #B379F5
triadic
#797DF5 #F5797D #7DF579
tetradic
#797DF5 #F579BB #F5F179 #79F5B3
square
#797DF5 #F579BB #F5F179 #79F5B3
split-complementary
#797DF5 #F5B379 #BBF579
monochromatic
#1118E3 #4046F1 #797DF5 #B2B4F9 #E3E3FD

Accessibility & contrast

On white

3.46
#797DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#797DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF5
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF5#FFFFFF#000000##000000
##797DF51.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#448FF9
Deuteranopia (green-blind)
#3785F2
Tritanopia (blue-blind)
#4697AD
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797df5;
/* rgb */ color: rgb(121, 125, 245);
/* oklch */ color: oklch(64.5% 0.176 278.8);
Tailwind
colors: {
  custom: {
    50: '#a7a2f9',
    500: '#797df5',
    950: '#000000',
  },
}
SCSS
$custom: #797df5;
$custom-light: #a7a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#797df5",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 245
  },
  "hsl": {
    "h": 238.065,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64455,
    "c": 0.17556,
    "h": 278.8
  },
  "luminance": 0.25325
}

Semantic roles & 50–950 ramp

primary
#797DF5
secondary
#F5F4D5
accent
#DB03E3
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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