#797FF1#797FF1

#797FF1 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.6% C 0.168 H 278.3°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#797FF1
RGBrgb(121, 127, 241)
HSLhsl(237, 81%, 71%)
HSVhsv(237, 50%, 95%)
CMYKcmyk(49.8%, 47.3%, 0%, 5.5%)
CIE-LABlab(57.65, 28.00, -58.24)
CIE-LCHlch(57.65, 64.63, 295.68°)
OKLaboklab(64.58% 0.0243 -0.1657)
OKLCHoklch(64.58% 0.168 278.3)
XYZxyz(31.3468, 25.5927, 86.4902)
Luminance0.2560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FF1 #F1EB79
analogous
#79BBF1 #797FF1 #AF79F1
triadic
#797FF1 #F1797F #7FF179
tetradic
#797FF1 #F179BB #F1EB79 #79F1AF
square
#797FF1 #F179BB #F1EB79 #79F1AF
split-complementary
#797FF1 #F1AF79 #BBF179
monochromatic
#1720D9 #424AEB #797FF1 #B0B4F7 #E3E5FC

Accessibility & contrast

On white

3.43
#797FF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#797FF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FF1
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FF1#FFFFFF#000000##000000
##797FF11.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8FF5
Deuteranopia (green-blind)
#4186EF
Tritanopia (blue-blind)
#4998AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797ff1;
/* rgb */ color: rgb(121, 127, 241);
/* oklch */ color: oklch(64.6% 0.168 278.3);
Tailwind
colors: {
  custom: {
    50: '#a7a4f6',
    500: '#797ff1',
    950: '#000000',
  },
}
SCSS
$custom: #797ff1;
$custom-light: #a7a4f6;
$custom-dark: #000000;
JSON
{
  "hex": "#797ff1",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 241
  },
  "hsl": {
    "h": 237,
    "s": 81.081,
    "l": 70.98
  },
  "oklch": {
    "l": 0.64577,
    "c": 0.1675,
    "h": 278.3
  },
  "luminance": 0.25595
}

Semantic roles & 50–950 ramp

primary
#797FF1
secondary
#F3F1D3
accent
#D308DD
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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