#797CF1#797CF1

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

Color values

HEX#797CF1
RGBrgb(121, 124, 241)
HSLhsl(239, 81%, 71%)
HSVhsv(239, 50%, 95%)
CMYKcmyk(49.8%, 48.5%, 0%, 5.5%)
CIE-LABlab(56.91, 29.78, -59.43)
CIE-LCHlch(56.91, 66.47, 296.62°)
OKLaboklab(64.02% 0.0276 -0.1692)
OKLCHoklch(64.02% 0.171 279.3)
XYZxyz(30.9651, 24.8294, 86.3629)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CF1 #F1EE79
analogous
#79B8F1 #797CF1 #B279F1
triadic
#797CF1 #F1797C #7CF179
tetradic
#797CF1 #F179B8 #F1EE79 #79F1B2
square
#797CF1 #F179B8 #F1EE79 #79F1B2
split-complementary
#797CF1 #F1B279 #B8F179
monochromatic
#171CD9 #4246EB #797CF1 #B0B2F7 #E3E4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797CF1#FFFFFF#000000##000000
##797CF11.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)
#468DF5
Deuteranopia (green-blind)
#3B84EE
Tritanopia (blue-blind)
#4995AB
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797cf1;
/* rgb */ color: rgb(121, 124, 241);
/* oklch */ color: oklch(64.0% 0.171 279.3);
Tailwind
colors: {
  custom: {
    50: '#a7a1f6',
    500: '#797cf1',
    950: '#000000',
  },
}
SCSS
$custom: #797cf1;
$custom-light: #a7a1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#797cf1",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 241
  },
  "hsl": {
    "h": 238.5,
    "s": 81.081,
    "l": 70.98
  },
  "oklch": {
    "l": 0.64018,
    "c": 0.17147,
    "h": 279.3
  },
  "luminance": 0.24831
}

Semantic roles & 50–950 ramp

primary
#797CF1
secondary
#F3F2D3
accent
#D808DD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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