#797EF3#797EF3

#797EF3 is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.5% C 0.172 H 278.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#797EF3
RGBrgb(121, 126, 243)
HSLhsl(238, 84%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(50.2%, 48.1%, 0%, 4.7%)
CIE-LABlab(57.52, 29.20, -59.56)
CIE-LCHlch(57.52, 66.34, 296.12°)
OKLaboklab(64.51% 0.0256 -0.1696)
OKLCHoklch(64.51% 0.172 278.6)
XYZxyz(31.5187, 25.4559, 88.0293)
Luminance0.2546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF3 #F3EE79
analogous
#79BBF3 #797EF3 #B179F3
triadic
#797EF3 #F3797E #7EF379
tetradic
#797EF3 #F379BB #F3EE79 #79F3B1
square
#797EF3 #F379BB #F3EE79 #79F3B1
split-complementary
#797EF3 #F3B179 #BBF379
monochromatic
#141CDE #4148EE #797EF3 #B1B4F8 #E3E4FC

Accessibility & contrast

On white

3.45
#797EF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#797EF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EF3
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EF3#FFFFFF#000000##000000
##797EF31.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#488FF7
Deuteranopia (green-blind)
#3C85F0
Tritanopia (blue-blind)
#4797AD
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797ef3;
/* rgb */ color: rgb(121, 126, 243);
/* oklch */ color: oklch(64.5% 0.172 278.6);
Tailwind
colors: {
  custom: {
    50: '#a7a3f8',
    500: '#797ef3',
    950: '#000000',
  },
}
SCSS
$custom: #797ef3;
$custom-light: #a7a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef3",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 243
  },
  "hsl": {
    "h": 237.541,
    "s": 83.562,
    "l": 71.373
  },
  "oklch": {
    "l": 0.64514,
    "c": 0.17153,
    "h": 278.6
  },
  "luminance": 0.25458
}

Semantic roles & 50–950 ramp

primary
#797EF3
secondary
#F4F2D4
accent
#D706E0
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF3

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

Preview Lab → · Contrast checker → · Palette generator →

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