#797ECD#797ECD

#797ECD is a light, moderate blue. Relative luminance 0.234; OKLCH L 62.3% C 0.118 H 279.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#797ECD
RGBrgb(121, 126, 205)
HSLhsl(236, 46%, 64%)
HSVhsv(236, 41%, 80%)
CMYKcmyk(41%, 38.5%, 0%, 19.6%)
CIE-LABlab(55.48, 17.99, -41.53)
CIE-LCHlch(55.48, 45.26, 293.43°)
OKLaboklab(62.3% 0.0198 -0.1168)
OKLCHoklch(62.3% 0.118 279.6)
XYZxyz(26.3622, 23.3933, 60.8721)
Luminance0.2339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ECD #CDC879
analogous
#79A8CD #797ECD #9E79CD
triadic
#797ECD #CD797E #7ECD79
tetradic
#797ECD #CD79A8 #CDC879 #79CD9E
square
#797ECD #CD79A8 #CDC879 #79CD9E
split-complementary
#797ECD #CD9E79 #A8CD79
monochromatic
#373D94 #4C53BC #797ECD #A6A9DE #D2D4EE

Accessibility & contrast

On white

3.70
#797ECD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#797ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ECD
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ECD#FFFFFF#000000##000000
##797ECD1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6388D0
Deuteranopia (green-blind)
#5D82CB
Tritanopia (blue-blind)
#5F8E9C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797ecd;
/* rgb */ color: rgb(121, 126, 205);
/* oklch */ color: oklch(62.3% 0.118 279.6);
Tailwind
colors: {
  custom: {
    50: '#a3a3dc',
    500: '#797ecd',
    950: '#000000',
  },
}
SCSS
$custom: #797ecd;
$custom-light: #a3a3dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797ecd",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 205
  },
  "hsl": {
    "h": 236.429,
    "s": 45.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62299,
    "c": 0.11848,
    "h": 279.6
  },
  "luminance": 0.23394
}

Semantic roles & 50–950 ramp

primary
#797ECD
secondary
#E0DEC2
accent
#B12DB9
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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