#797ECB#797ECB

#797ECB is a light, moderate blue. Relative luminance 0.233; OKLCH L 62.2% C 0.116 H 279.6°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#797ECB
RGBrgb(121, 126, 203)
HSLhsl(236, 44%, 64%)
HSVhsv(236, 40%, 80%)
CMYKcmyk(40.4%, 37.9%, 0%, 20.4%)
CIE-LABlab(55.38, 17.42, -40.55)
CIE-LCHlch(55.38, 44.13, 293.25°)
OKLaboklab(62.19% 0.0194 -0.114)
OKLCHoklch(62.19% 0.116 279.6)
XYZxyz(26.1224, 23.2974, 59.6088)
Luminance0.2330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ECB #CBC679
analogous
#79A7CB #797ECB #9D79CB
triadic
#797ECB #CB797E #7ECB79
tetradic
#797ECB #CB79A7 #CBC679 #79CB9D
square
#797ECB #CB79A7 #CBC679 #79CB9D
split-complementary
#797ECB #CB9D79 #A7CB79
monochromatic
#383E91 #4D54BA #797ECB #A5A8DC #D1D3ED

Accessibility & contrast

On white

3.71
#797ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#797ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ECB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ECB#FFFFFF#000000##000000
##797ECB1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6488CE
Deuteranopia (green-blind)
#5F82C9
Tritanopia (blue-blind)
#608D9B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797ecb;
/* rgb */ color: rgb(121, 126, 203);
/* oklch */ color: oklch(62.2% 0.116 279.6);
Tailwind
colors: {
  custom: {
    50: '#a3a3db',
    500: '#797ecb',
    950: '#000000',
  },
}
SCSS
$custom: #797ecb;
$custom-light: #a3a3db;
$custom-dark: #000000;
JSON
{
  "hex": "#797ecb",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 236.341,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62192,
    "c": 0.1156,
    "h": 279.6
  },
  "luminance": 0.23298
}

Semantic roles & 50–950 ramp

primary
#797ECB
secondary
#DEDDC1
accent
#AF2EB7
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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