#797CE5#797CE5

#797CE5 is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.3% C 0.155 H 279.8°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#797CE5
RGBrgb(121, 124, 229)
HSLhsl(238, 68%, 69%)
HSVhsv(238, 47%, 90%)
CMYKcmyk(47.2%, 45.9%, 0%, 10.2%)
CIE-LABlab(56.22, 26.19, -53.84)
CIE-LCHlch(56.22, 59.87, 295.94°)
OKLaboklab(63.28% 0.0263 -0.1528)
OKLCHoklch(63.28% 0.155 279.8)
XYZxyz(29.2314, 24.1359, 77.2320)
Luminance0.2414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CE5 #E5E279
analogous
#79B2E5 #797CE5 #AC79E5
triadic
#797CE5 #E5797C #7CE579
tetradic
#797CE5 #E579B2 #E5E279 #79E5AC
square
#797CE5 #E579B2 #E5E279 #79E5AC
split-complementary
#797CE5 #E5AC79 #B2E579
monochromatic
#2529BF #464ADB #797CE5 #ACAEEF #E0E0F9

Accessibility & contrast

On white

3.60
#797CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#797CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CE5
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CE5#FFFFFF#000000##000000
##797CE51.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#508BE9
Deuteranopia (green-blind)
#4883E3
Tritanopia (blue-blind)
#5292A5
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797ce5;
/* rgb */ color: rgb(121, 124, 229);
/* oklch */ color: oklch(63.3% 0.155 279.8);
Tailwind
colors: {
  custom: {
    50: '#a6a1ee',
    500: '#797ce5',
    950: '#000000',
  },
}
SCSS
$custom: #797ce5;
$custom-light: #a6a1ee;
$custom-dark: #000000;
JSON
{
  "hex": "#797ce5",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 229
  },
  "hsl": {
    "h": 238.333,
    "s": 67.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.63279,
    "c": 0.15507,
    "h": 279.8
  },
  "luminance": 0.24137
}

Semantic roles & 50–950 ramp

primary
#797CE5
secondary
#EDECCD
accent
#CA16CF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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