#797DF1#797DF1

#797DF1 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.2% C 0.170 H 279.0°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#797DF1
RGBrgb(121, 125, 241)
HSLhsl(238, 81%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(49.8%, 48.1%, 0%, 5.5%)
CIE-LABlab(57.15, 29.19, -59.04)
CIE-LCHlch(57.15, 65.86, 296.31°)
OKLaboklab(64.2% 0.0265 -0.1681)
OKLCHoklch(64.2% 0.17 279)
XYZxyz(31.0910, 25.0813, 86.4049)
Luminance0.2508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF1 #F1ED79
analogous
#79B9F1 #797DF1 #B179F1
triadic
#797DF1 #F1797D #7DF179
tetradic
#797DF1 #F179B9 #F1ED79 #79F1B1
square
#797DF1 #F179B9 #F1ED79 #79F1B1
split-complementary
#797DF1 #F1B179 #B9F179
monochromatic
#171DD9 #4247EB #797DF1 #B0B3F7 #E3E4FC

Accessibility & contrast

On white

3.49
#797DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#797DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF1
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF1#FFFFFF#000000##000000
##797DF11.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#488EF5
Deuteranopia (green-blind)
#3D85EE
Tritanopia (blue-blind)
#4996AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797df1;
/* rgb */ color: rgb(121, 125, 241);
/* oklch */ color: oklch(64.2% 0.170 279.0);
Tailwind
colors: {
  custom: {
    50: '#a7a2f6',
    500: '#797df1',
    950: '#000000',
  },
}
SCSS
$custom: #797df1;
$custom-light: #a7a2f6;
$custom-dark: #000000;
JSON
{
  "hex": "#797df1",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 241
  },
  "hsl": {
    "h": 238,
    "s": 81.081,
    "l": 70.98
  },
  "oklch": {
    "l": 0.64203,
    "c": 0.17015,
    "h": 279
  },
  "luminance": 0.25083
}

Semantic roles & 50–950 ramp

primary
#797DF1
secondary
#F3F2D3
accent
#D608DD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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