#797CF0#797CF0

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

Color values

HEX#797CF0
RGBrgb(121, 124, 240)
HSLhsl(238, 80%, 71%)
HSVhsv(238, 50%, 94%)
CMYKcmyk(49.6%, 48.3%, 0%, 5.9%)
CIE-LABlab(56.85, 29.48, -58.97)
CIE-LCHlch(56.85, 65.93, 296.56°)
OKLaboklab(63.96% 0.0275 -0.1679)
OKLCHoklch(63.96% 0.17 279.3)
XYZxyz(30.8161, 24.7698, 85.5784)
Luminance0.2477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CF0 #F0ED79
analogous
#79B8F0 #797CF0 #B179F0
triadic
#797CF0 #F0797C #7CF079
tetradic
#797CF0 #F079B8 #F0ED79 #79F0B1
square
#797CF0 #F079B8 #F0ED79 #79F0B1
split-complementary
#797CF0 #F0B179 #B8F079
monochromatic
#181DD7 #4246EA #797CF0 #B0B2F6 #E3E4FC

Accessibility & contrast

On white

3.53
#797CF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#797CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CF0
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CF0#FFFFFF#000000##000000
##797CF01.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#478DF4
Deuteranopia (green-blind)
#3C84ED
Tritanopia (blue-blind)
#4A95AB
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797cf0;
/* rgb */ color: rgb(121, 124, 240);
/* oklch */ color: oklch(64.0% 0.170 279.3);
Tailwind
colors: {
  custom: {
    50: '#a7a1f5',
    500: '#797cf0',
    950: '#000000',
  },
}
SCSS
$custom: #797cf0;
$custom-light: #a7a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797cf0",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 240
  },
  "hsl": {
    "h": 238.487,
    "s": 79.866,
    "l": 70.784
  },
  "oklch": {
    "l": 0.63955,
    "c": 0.17012,
    "h": 279.3
  },
  "luminance": 0.24772
}

Semantic roles & 50–950 ramp

primary
#797CF0
secondary
#F2F2D2
accent
#D709DC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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