#797EF6#797EF6

#797EF6 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.7% C 0.176 H 278.5°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#797EF6
RGBrgb(121, 126, 246)
HSLhsl(238, 87%, 72%)
HSVhsv(238, 51%, 96%)
CMYKcmyk(50.8%, 48.8%, 0%, 3.5%)
CIE-LABlab(57.69, 30.11, -60.94)
CIE-LCHlch(57.69, 67.97, 296.29°)
OKLaboklab(64.7% 0.0259 -0.1737)
OKLCHoklch(64.7% 0.176 278.5)
XYZxyz(31.9754, 25.6386, 90.4348)
Luminance0.2564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF6 #F6F179
analogous
#79BDF6 #797EF6 #B379F6
triadic
#797EF6 #F6797E #7EF679
tetradic
#797EF6 #F679BD #F6F179 #79F6B3
square
#797EF6 #F679BD #F6F179 #79F6B3
split-complementary
#797EF6 #F6B379 #BDF679
monochromatic
#0F18E5 #4047F2 #797EF6 #B2B5FA #E2E3FD

Accessibility & contrast

On white

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

On black

6.13
#797EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EF6
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EF6#FFFFFF#000000##000000
##797EF61.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4590FA
Deuteranopia (green-blind)
#3886F3
Tritanopia (blue-blind)
#4598AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ef6;
/* rgb */ color: rgb(121, 126, 246);
/* oklch */ color: oklch(64.7% 0.176 278.5);
Tailwind
colors: {
  custom: {
    50: '#a7a3fa',
    500: '#797ef6',
    950: '#000000',
  },
}
SCSS
$custom: #797ef6;
$custom-light: #a7a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef6",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 237.6,
    "s": 87.413,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64703,
    "c": 0.17559,
    "h": 278.5
  },
  "luminance": 0.2564
}

Semantic roles & 50–950 ramp

primary
#797EF6
secondary
#F5F4D6
accent
#DB02E4
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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