#797FE1#797FE1

#797FE1 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.6% C 0.145 H 278.8°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#797FE1
RGBrgb(121, 127, 225)
HSLhsl(237, 63%, 68%)
HSVhsv(237, 46%, 88%)
CMYKcmyk(46.2%, 43.6%, 0%, 11.8%)
CIE-LABlab(56.76, 23.22, -50.75)
CIE-LCHlch(56.76, 55.81, 294.59°)
OKLaboklab(63.62% 0.0222 -0.1437)
OKLCHoklch(63.62% 0.145 278.8)
XYZxyz(29.0610, 24.6784, 74.4517)
Luminance0.2468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FE1 #E1DB79
analogous
#79B3E1 #797FE1 #A779E1
triadic
#797FE1 #E1797F #7FE179
tetradic
#797FE1 #E179B3 #E1DB79 #79E1A7
square
#797FE1 #E179B3 #E1DB79 #79E1A7
split-complementary
#797FE1 #E1A779 #B3E179
monochromatic
#2931B7 #474FD6 #797FE1 #ABAFEC #DDDFF7

Accessibility & contrast

On white

3.54
#797FE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#797FE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FE1
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FE1#FFFFFF#000000##000000
##797FE11.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#588CE5
Deuteranopia (green-blind)
#5084DF
Tritanopia (blue-blind)
#5493A5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797fe1;
/* rgb */ color: rgb(121, 127, 225);
/* oklch */ color: oklch(63.6% 0.145 278.8);
Tailwind
colors: {
  custom: {
    50: '#a5a4eb',
    500: '#797fe1',
    950: '#000000',
  },
}
SCSS
$custom: #797fe1;
$custom-light: #a5a4eb;
$custom-dark: #000000;
JSON
{
  "hex": "#797fe1",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 225
  },
  "hsl": {
    "h": 236.538,
    "s": 63.415,
    "l": 67.843
  },
  "oklch": {
    "l": 0.63616,
    "c": 0.14545,
    "h": 278.8
  },
  "luminance": 0.2468
}

Semantic roles & 50–950 ramp

primary
#797FE1
secondary
#EBE9CB
accent
#C11ACB
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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