#797CF5#797CF5

#797CF5 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.3% C 0.177 H 279.1°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#797CF5
RGBrgb(121, 124, 245)
HSLhsl(239, 86%, 72%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(50.6%, 49.4%, 0%, 3.9%)
CIE-LABlab(57.14, 30.99, -61.27)
CIE-LCHlch(57.14, 68.66, 296.83°)
OKLaboklab(64.27% 0.028 -0.1746)
OKLCHoklch(64.27% 0.177 279.1)
XYZxyz(31.5691, 25.0710, 89.5442)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CF5 #F5F279
analogous
#79BAF5 #797CF5 #B479F5
triadic
#797CF5 #F5797C #7CF579
tetradic
#797CF5 #F579BA #F5F279 #79F5B4
square
#797CF5 #F579BA #F5F279 #79F5B4
split-complementary
#797CF5 #F5B479 #BAF579
monochromatic
#1116E3 #4044F1 #797CF5 #B2B4F9 #E3E3FD

Accessibility & contrast

On white

3.49
#797CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#797CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CF5
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CF5#FFFFFF#000000##000000
##797CF51.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#428EF9
Deuteranopia (green-blind)
#3584F2
Tritanopia (blue-blind)
#4697AD
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797cf5;
/* rgb */ color: rgb(121, 124, 245);
/* oklch */ color: oklch(64.3% 0.177 279.1);
Tailwind
colors: {
  custom: {
    50: '#a7a1f9',
    500: '#797cf5',
    950: '#000000',
  },
}
SCSS
$custom: #797cf5;
$custom-light: #a7a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#797cf5",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 245
  },
  "hsl": {
    "h": 238.548,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64272,
    "c": 0.17687,
    "h": 279.1
  },
  "luminance": 0.25073
}

Semantic roles & 50–950 ramp

primary
#797CF5
secondary
#F5F4D5
accent
#DD03E3
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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