#797EFA#797EFA

#797EFA is a light, vivid blue. Relative luminance 0.259; OKLCH L 65.0% C 0.181 H 278.3°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#797EFA
RGBrgb(121, 126, 250)
HSLhsl(238, 93%, 73%)
HSVhsv(238, 52%, 98%)
CMYKcmyk(51.6%, 49.6%, 0%, 2%)
CIE-LABlab(57.93, 31.32, -62.77)
CIE-LCHlch(57.93, 70.15, 296.52°)
OKLaboklab(64.96% 0.0263 -0.179)
OKLCHoklch(64.96% 0.181 278.3)
XYZxyz(32.5959, 25.8868, 93.7030)
Luminance0.2589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EFA #FAF579
analogous
#79BFFA #797EFA #B479FA
triadic
#797EFA #FA797E #7EFA79
tetradic
#797EFA #FA79BF #FAF579 #79FAB4
square
#797EFA #FA79BF #FAF579 #79FAB4
split-complementary
#797EFA #FAB479 #BFFA79
monochromatic
#0912F0 #3E45F8 #797EFA #B4B7FC #E2E3FE

Accessibility & contrast

On white

3.40
#797EFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#797EFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EFA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EFA#FFFFFF#000000##000000
##797EFA1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4190FE
Deuteranopia (green-blind)
#3286F7
Tritanopia (blue-blind)
#4199B0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797efa;
/* rgb */ color: rgb(121, 126, 250);
/* oklch */ color: oklch(65.0% 0.181 278.3);
Tailwind
colors: {
  custom: {
    50: '#a8a3fd',
    500: '#797efa',
    950: '#000000',
  },
}
SCSS
$custom: #797efa;
$custom-light: #a8a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#797efa",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 237.674,
    "s": 92.806,
    "l": 72.745
  },
  "oklch": {
    "l": 0.64958,
    "c": 0.18096,
    "h": 278.3
  },
  "luminance": 0.25889
}

Semantic roles & 50–950 ramp

primary
#797EFA
secondary
#F6F5D5
accent
#DD00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #797EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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