#797CF6#797CF6

#797CF6 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.3% C 0.178 H 279.1°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#797CF6
RGBrgb(121, 124, 246)
HSLhsl(239, 87%, 72%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(50.8%, 49.6%, 0%, 3.5%)
CIE-LABlab(57.20, 31.29, -61.73)
CIE-LCHlch(57.20, 69.20, 296.88°)
OKLaboklab(64.33% 0.0281 -0.176)
OKLCHoklch(64.33% 0.178 279.1)
XYZxyz(31.7222, 25.1322, 90.3504)
Luminance0.2513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CF6 #F6F379
analogous
#79BBF6 #797CF6 #B579F6
triadic
#797CF6 #F6797C #7CF679
tetradic
#797CF6 #F679BB #F6F379 #79F6B5
square
#797CF6 #F679BB #F6F379 #79F6B5
split-complementary
#797CF6 #F6B579 #BBF679
monochromatic
#0F15E5 #4044F2 #797CF6 #B2B4FA #E2E3FD

Accessibility & contrast

On white

3.48
#797CF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#797CF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CF6
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CF6#FFFFFF#000000##000000
##797CF61.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#418EFA
Deuteranopia (green-blind)
#3385F3
Tritanopia (blue-blind)
#4597AD
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797cf6;
/* rgb */ color: rgb(121, 124, 246);
/* oklch */ color: oklch(64.3% 0.178 279.1);
Tailwind
colors: {
  custom: {
    50: '#a7a1fa',
    500: '#797cf6',
    950: '#000000',
  },
}
SCSS
$custom: #797cf6;
$custom-light: #a7a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797cf6",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 246
  },
  "hsl": {
    "h": 238.56,
    "s": 87.413,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64335,
    "c": 0.17821,
    "h": 279.1
  },
  "luminance": 0.25134
}

Semantic roles & 50–950 ramp

primary
#797CF6
secondary
#F5F4D6
accent
#DF02E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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