#797FE3#797FE3

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

Color values

HEX#797FE3
RGBrgb(121, 127, 227)
HSLhsl(237, 65%, 68%)
HSVhsv(237, 47%, 89%)
CMYKcmyk(46.7%, 44.1%, 0%, 11%)
CIE-LABlab(56.87, 23.81, -51.70)
CIE-LCHlch(56.87, 56.92, 294.73°)
OKLaboklab(63.73% 0.0225 -0.1465)
OKLCHoklch(63.73% 0.148 278.7)
XYZxyz(29.3354, 24.7882, 75.8970)
Luminance0.2479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FE3 #E3DD79
analogous
#79B4E3 #797FE3 #A879E3
triadic
#797FE3 #E3797F #7FE379
tetradic
#797FE3 #E379B4 #E3DD79 #79E3A8
square
#797FE3 #E379B4 #E3DD79 #79E3A8
split-complementary
#797FE3 #E3A879 #B4E379
monochromatic
#272FBB #464FD8 #797FE3 #ACAFEE #DEE0F8

Accessibility & contrast

On white

3.52
#797FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#797FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FE3
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FE3#FFFFFF#000000##000000
##797FE31.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#578DE7
Deuteranopia (green-blind)
#4F85E1
Tritanopia (blue-blind)
#5394A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797fe3;
/* rgb */ color: rgb(121, 127, 227);
/* oklch */ color: oklch(63.7% 0.148 278.7);
Tailwind
colors: {
  custom: {
    50: '#a5a4ec',
    500: '#797fe3',
    950: '#000000',
  },
}
SCSS
$custom: #797fe3;
$custom-light: #a5a4ec;
$custom-dark: #000000;
JSON
{
  "hex": "#797fe3",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 227
  },
  "hsl": {
    "h": 236.604,
    "s": 65.432,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63733,
    "c": 0.14823,
    "h": 278.7
  },
  "luminance": 0.2479
}

Semantic roles & 50–950 ramp

primary
#797FE3
secondary
#ECEACC
accent
#C318CD
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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