#797ECA#797ECA

#797ECA is a light, moderate blue. Relative luminance 0.233; OKLCH L 62.1% C 0.114 H 279.7°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#797ECA
RGBrgb(121, 126, 202)
HSLhsl(236, 43%, 63%)
HSVhsv(236, 40%, 79%)
CMYKcmyk(40.1%, 37.6%, 0%, 20.8%)
CIE-LABlab(55.33, 17.14, -40.06)
CIE-LCHlch(55.33, 43.57, 293.16°)
OKLaboklab(62.14% 0.0191 -0.1125)
OKLCHoklch(62.14% 0.114 279.7)
XYZxyz(26.0036, 23.2498, 58.9832)
Luminance0.2325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ECA #CAC579
analogous
#79A6CA #797ECA #9C79CA
triadic
#797ECA #CA797E #7ECA79
tetradic
#797ECA #CA79A6 #CAC579 #79CA9C
square
#797ECA #CA79A6 #CAC579 #79CA9C
split-complementary
#797ECA #CA9C79 #A6CA79
monochromatic
#393E90 #4D54B9 #797ECA #A5A8DB #D1D2ED

Accessibility & contrast

On white

3.72
#797ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#797ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ECA
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ECA#FFFFFF#000000##000000
##797ECA1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6488CD
Deuteranopia (green-blind)
#5F82C8
Tritanopia (blue-blind)
#618D9A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797eca;
/* rgb */ color: rgb(121, 126, 202);
/* oklch */ color: oklch(62.1% 0.114 279.7);
Tailwind
colors: {
  custom: {
    50: '#a3a3da',
    500: '#797eca',
    950: '#000000',
  },
}
SCSS
$custom: #797eca;
$custom-light: #a3a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#797eca",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 236.296,
    "s": 43.316,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62139,
    "c": 0.11416,
    "h": 279.7
  },
  "luminance": 0.23251
}

Semantic roles & 50–950 ramp

primary
#797ECA
secondary
#DEDCC1
accent
#AE2FB6
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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