#797AF1#797AF1

#797AF1 is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.6% C 0.174 H 279.9°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#797AF1
RGBrgb(121, 122, 241)
HSLhsl(240, 81%, 71%)
HSVhsv(240, 50%, 95%)
CMYKcmyk(49.8%, 49.4%, 0%, 5.5%)
CIE-LABlab(56.42, 30.97, -60.21)
CIE-LCHlch(56.42, 67.71, 297.22°)
OKLaboklab(63.65% 0.0299 -0.1715)
OKLCHoklch(63.65% 0.174 279.9)
XYZxyz(30.7170, 24.3332, 86.2802)
Luminance0.2434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AF1 #F1F079
analogous
#79B6F1 #797AF1 #B479F1
triadic
#797AF1 #F1797A #7AF179
tetradic
#797AF1 #F179B6 #F1F079 #79F1B4
square
#797AF1 #F179B6 #F1F079 #79F1B4
split-complementary
#797AF1 #F1B479 #B6F179
monochromatic
#1718D9 #4243EB #797AF1 #B0B1F7 #E3E4FC

Accessibility & contrast

On white

3.58
#797AF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#797AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AF1
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AF1#FFFFFF#000000##000000
##797AF11.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#428CF5
Deuteranopia (green-blind)
#3683EE
Tritanopia (blue-blind)
#4A94AA
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797af1;
/* rgb */ color: rgb(121, 122, 241);
/* oklch */ color: oklch(63.6% 0.174 279.9);
Tailwind
colors: {
  custom: {
    50: '#a7a0f6',
    500: '#797af1',
    950: '#000000',
  },
}
SCSS
$custom: #797af1;
$custom-light: #a7a0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#797af1",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 241
  },
  "hsl": {
    "h": 239.5,
    "s": 81.081,
    "l": 70.98
  },
  "oklch": {
    "l": 0.6365,
    "c": 0.17413,
    "h": 279.9
  },
  "luminance": 0.24335
}

Semantic roles & 50–950 ramp

primary
#797AF1
secondary
#F3F3D3
accent
#DC08DD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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