#797FF6#797FF6

#797FF6 is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.9% C 0.174 H 278.2°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#797FF6
RGBrgb(121, 127, 246)
HSLhsl(237, 87%, 72%)
HSVhsv(237, 51%, 96%)
CMYKcmyk(50.8%, 48.4%, 0%, 3.5%)
CIE-LABlab(57.94, 29.51, -60.55)
CIE-LCHlch(57.94, 67.36, 295.99°)
OKLaboklab(64.89% 0.0248 -0.1725)
OKLCHoklch(64.89% 0.174 278.2)
XYZxyz(32.1039, 25.8956, 90.4776)
Luminance0.2590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FF6 #F6F079
analogous
#79BEF6 #797FF6 #B279F6
triadic
#797FF6 #F6797F #7FF679
tetradic
#797FF6 #F679BE #F6F079 #79F6B2
square
#797FF6 #F679BE #F6F079 #79F6B2
split-complementary
#797FF6 #F6B279 #BEF679
monochromatic
#0F1AE5 #4048F2 #797FF6 #B2B6FA #E2E4FD

Accessibility & contrast

On white

3.40
#797FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#797FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FF6
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FF6#FFFFFF#000000##000000
##797FF61.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4790FA
Deuteranopia (green-blind)
#3A86F3
Tritanopia (blue-blind)
#4599AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ff6;
/* rgb */ color: rgb(121, 127, 246);
/* oklch */ color: oklch(64.9% 0.174 278.2);
Tailwind
colors: {
  custom: {
    50: '#a7a4fa',
    500: '#797ff6',
    950: '#000000',
  },
}
SCSS
$custom: #797ff6;
$custom-light: #a7a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797ff6",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 246
  },
  "hsl": {
    "h": 237.12,
    "s": 87.413,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64889,
    "c": 0.17428,
    "h": 278.2
  },
  "luminance": 0.25898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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