#797CE7#797CE7

#797CE7 is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.4% C 0.158 H 279.7°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#797CE7
RGBrgb(121, 124, 231)
HSLhsl(238, 70%, 69%)
HSVhsv(238, 48%, 91%)
CMYKcmyk(47.6%, 46.3%, 0%, 9.4%)
CIE-LABlab(56.34, 26.79, -54.78)
CIE-LCHlch(56.34, 60.98, 296.06°)
OKLaboklab(63.4% 0.0265 -0.1556)
OKLCHoklch(63.4% 0.158 279.7)
XYZxyz(29.5122, 24.2482, 78.7111)
Luminance0.2425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CE7 #E7E479
analogous
#79B3E7 #797CE7 #AD79E7
triadic
#797CE7 #E7797C #7CE779
tetradic
#797CE7 #E779B3 #E7E479 #79E7AD
square
#797CE7 #E779B3 #E7E479 #79E7AD
split-complementary
#797CE7 #E7AD79 #B3E779
monochromatic
#2327C3 #4549DE #797CE7 #ADAFF0 #E1E1FA

Accessibility & contrast

On white

3.59
#797CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#797CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CE7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CE7#FFFFFF#000000##000000
##797CE71.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8BEB
Deuteranopia (green-blind)
#4683E5
Tritanopia (blue-blind)
#5193A6
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797ce7;
/* rgb */ color: rgb(121, 124, 231);
/* oklch */ color: oklch(63.4% 0.158 279.7);
Tailwind
colors: {
  custom: {
    50: '#a6a1ef',
    500: '#797ce7',
    950: '#000000',
  },
}
SCSS
$custom: #797ce7;
$custom-light: #a6a1ef;
$custom-dark: #000000;
JSON
{
  "hex": "#797ce7",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 231
  },
  "hsl": {
    "h": 238.364,
    "s": 69.62,
    "l": 69.02
  },
  "oklch": {
    "l": 0.634,
    "c": 0.15783,
    "h": 279.7
  },
  "luminance": 0.2425
}

Semantic roles & 50–950 ramp

primary
#797CE7
secondary
#EEEDCE
accent
#CC14D2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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