#797EF2#797EF2

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

Color values

HEX#797EF2
RGBrgb(121, 126, 242)
HSLhsl(238, 82%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(50%, 47.9%, 0%, 5.1%)
CIE-LABlab(57.46, 28.90, -59.10)
CIE-LCHlch(57.46, 65.79, 296.06°)
OKLaboklab(64.45% 0.0255 -0.1683)
OKLCHoklch(64.45% 0.17 278.6)
XYZxyz(31.3681, 25.3956, 87.2361)
Luminance0.2540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF2 #F2ED79
analogous
#79BAF2 #797EF2 #B079F2
triadic
#797EF2 #F2797E #7EF279
tetradic
#797EF2 #F279BA #F2ED79 #79F2B0
square
#797EF2 #F279BA #F2ED79 #79F2B0
split-complementary
#797EF2 #F2B079 #BAF279
monochromatic
#151DDB #4148ED #797EF2 #B1B4F7 #E3E4FC

Accessibility & contrast

On white

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

On black

6.08
#797EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EF2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EF2#FFFFFF#000000##000000
##797EF21.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#498FF6
Deuteranopia (green-blind)
#3D85EF
Tritanopia (blue-blind)
#4897AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797ef2;
/* rgb */ color: rgb(121, 126, 242);
/* oklch */ color: oklch(64.5% 0.170 278.6);
Tailwind
colors: {
  custom: {
    50: '#a7a3f7',
    500: '#797ef2',
    950: '#000000',
  },
}
SCSS
$custom: #797ef2;
$custom-light: #a7a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef2",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 237.521,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.64452,
    "c": 0.17018,
    "h": 278.6
  },
  "luminance": 0.25397
}

Semantic roles & 50–950 ramp

primary
#797EF2
secondary
#F3F2D3
accent
#D607DF
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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