#797FE2#797FE2

#797FE2 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.7% C 0.147 H 278.7°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#797FE2
RGBrgb(121, 127, 226)
HSLhsl(237, 64%, 68%)
HSVhsv(237, 46%, 89%)
CMYKcmyk(46.5%, 43.8%, 0%, 11.4%)
CIE-LABlab(56.81, 23.51, -51.22)
CIE-LCHlch(56.81, 56.36, 294.66°)
OKLaboklab(63.67% 0.0223 -0.1451)
OKLCHoklch(63.67% 0.147 278.7)
XYZxyz(29.1978, 24.7332, 75.1722)
Luminance0.2473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FE2 #E2DC79
analogous
#79B4E2 #797FE2 #A779E2
triadic
#797FE2 #E2797F #7FE279
tetradic
#797FE2 #E279B4 #E2DC79 #79E2A7
square
#797FE2 #E279B4 #E2DC79 #79E2A7
split-complementary
#797FE2 #E2A779 #B4E279
monochromatic
#2830B9 #474FD7 #797FE2 #ABAFED #DEDFF8

Accessibility & contrast

On white

3.53
#797FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#797FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FE2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FE2#FFFFFF#000000##000000
##797FE21.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#588CE6
Deuteranopia (green-blind)
#5084E0
Tritanopia (blue-blind)
#5494A5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797fe2;
/* rgb */ color: rgb(121, 127, 226);
/* oklch */ color: oklch(63.7% 0.147 278.7);
Tailwind
colors: {
  custom: {
    50: '#a5a4eb',
    500: '#797fe2',
    950: '#000000',
  },
}
SCSS
$custom: #797fe2;
$custom-light: #a5a4eb;
$custom-dark: #000000;
JSON
{
  "hex": "#797fe2",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 226
  },
  "hsl": {
    "h": 236.571,
    "s": 64.417,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63674,
    "c": 0.14684,
    "h": 278.7
  },
  "luminance": 0.24735
}

Semantic roles & 50–950 ramp

primary
#797FE2
secondary
#EBEACB
accent
#C219CC
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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