#797BF1#797BF1

#797BF1 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.8% C 0.173 H 279.6°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#797BF1
RGBrgb(121, 123, 241)
HSLhsl(239, 81%, 71%)
HSVhsv(239, 50%, 95%)
CMYKcmyk(49.8%, 49%, 0%, 5.5%)
CIE-LABlab(56.66, 30.38, -59.82)
CIE-LCHlch(56.66, 67.09, 296.92°)
OKLaboklab(63.83% 0.0288 -0.1704)
OKLCHoklch(63.83% 0.173 279.6)
XYZxyz(30.8404, 24.5800, 86.3214)
Luminance0.2458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF1 #F1EF79
analogous
#79B7F1 #797BF1 #B379F1
triadic
#797BF1 #F1797B #7BF179
tetradic
#797BF1 #F179B7 #F1EF79 #79F1B3
square
#797BF1 #F179B7 #F1EF79 #79F1B3
split-complementary
#797BF1 #F1B379 #B7F179
monochromatic
#171AD9 #4244EB #797BF1 #B0B2F7 #E3E4FC

Accessibility & contrast

On white

3.55
#797BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#797BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BF1
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BF1#FFFFFF#000000##000000
##797BF11.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#448DF5
Deuteranopia (green-blind)
#3883EE
Tritanopia (blue-blind)
#4A95AB
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797bf1;
/* rgb */ color: rgb(121, 123, 241);
/* oklch */ color: oklch(63.8% 0.173 279.6);
Tailwind
colors: {
  custom: {
    50: '#a7a1f6',
    500: '#797bf1',
    950: '#000000',
  },
}
SCSS
$custom: #797bf1;
$custom-light: #a7a1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf1",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 241
  },
  "hsl": {
    "h": 239,
    "s": 81.081,
    "l": 70.98
  },
  "oklch": {
    "l": 0.63833,
    "c": 0.1728,
    "h": 279.6
  },
  "luminance": 0.24582
}

Semantic roles & 50–950 ramp

primary
#797BF1
secondary
#F3F2D3
accent
#DA08DD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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