#797FF7#797FF7

#797FF7 is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.0% C 0.176 H 278.2°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#797FF7
RGBrgb(121, 127, 247)
HSLhsl(237, 89%, 72%)
HSVhsv(237, 51%, 97%)
CMYKcmyk(51%, 48.6%, 0%, 3.1%)
CIE-LABlab(58.00, 29.82, -61.01)
CIE-LCHlch(58.00, 67.91, 296.05°)
OKLaboklab(64.95% 0.0249 -0.1738)
OKLCHoklch(64.95% 0.176 278.2)
XYZxyz(32.2578, 25.9571, 91.2881)
Luminance0.2596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FF7 #F7F179
analogous
#79BEF7 #797FF7 #B279F7
triadic
#797FF7 #F7797F #7FF779
tetradic
#797FF7 #F779BE #F7F179 #79F7B2
square
#797FF7 #F779BE #F7F179 #79F7B2
split-complementary
#797FF7 #F7B279 #BEF779
monochromatic
#0E18E8 #3F48F4 #797FF7 #B3B6FA #E2E3FD

Accessibility & contrast

On white

3.39
#797FF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#797FF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FF7
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FF7#FFFFFF#000000##000000
##797FF71.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4691FB
Deuteranopia (green-blind)
#3987F4
Tritanopia (blue-blind)
#4499AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ff7;
/* rgb */ color: rgb(121, 127, 247);
/* oklch */ color: oklch(65.0% 0.176 278.2);
Tailwind
colors: {
  custom: {
    50: '#a7a4fa',
    500: '#797ff7',
    950: '#000000',
  },
}
SCSS
$custom: #797ff7;
$custom-light: #a7a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797ff7",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 247
  },
  "hsl": {
    "h": 237.143,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64952,
    "c": 0.17563,
    "h": 278.2
  },
  "luminance": 0.25959
}

Semantic roles & 50–950 ramp

primary
#797FF7
secondary
#F5F4D6
accent
#DA00E5
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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