#797CEB#797CEB

#797CEB is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.6% C 0.163 H 279.5°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#797CEB
RGBrgb(121, 124, 235)
HSLhsl(238, 74%, 70%)
HSVhsv(238, 49%, 92%)
CMYKcmyk(48.5%, 47.2%, 0%, 7.8%)
CIE-LABlab(56.56, 27.98, -56.65)
CIE-LCHlch(56.56, 63.18, 296.29°)
OKLaboklab(63.64% 0.027 -0.1611)
OKLCHoklch(63.64% 0.163 279.5)
XYZxyz(30.0836, 24.4768, 81.7205)
Luminance0.2448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CEB #EBE879
analogous
#79B5EB #797CEB #AF79EB
triadic
#797CEB #EB797C #7CEB79
tetradic
#797CEB #EB79B5 #EBE879 #79EBAF
square
#797CEB #EB79B5 #EBE879 #79EBAF
split-complementary
#797CEB #EBAF79 #B5EB79
monochromatic
#1E23CB #4448E3 #797CEB #AEB0F3 #E4E4FB

Accessibility & contrast

On white

3.56
#797CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#797CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CEB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CEB#FFFFFF#000000##000000
##797CEB1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8CEF
Deuteranopia (green-blind)
#4283E9
Tritanopia (blue-blind)
#4E94A8
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797ceb;
/* rgb */ color: rgb(121, 124, 235);
/* oklch */ color: oklch(63.6% 0.163 279.5);
Tailwind
colors: {
  custom: {
    50: '#a6a1f2',
    500: '#797ceb',
    950: '#000000',
  },
}
SCSS
$custom: #797ceb;
$custom-light: #a6a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#797ceb",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 235
  },
  "hsl": {
    "h": 238.421,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63644,
    "c": 0.16331,
    "h": 279.5
  },
  "luminance": 0.24478
}

Semantic roles & 50–950 ramp

primary
#797CEB
secondary
#F0EFD0
accent
#D10FD6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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