#797BCB#797BCB

#797BCB is a mid, moderate blue. Relative luminance 0.225; OKLCH L 61.6% C 0.120 H 281.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#797BCB
RGBrgb(121, 123, 203)
HSLhsl(239, 44%, 64%)
HSVhsv(239, 40%, 80%)
CMYKcmyk(40.4%, 39.4%, 0%, 20.4%)
CIE-LABlab(54.60, 19.21, -41.78)
CIE-LCHlch(54.60, 45.98, 294.69°)
OKLaboklab(61.59% 0.0233 -0.1176)
OKLCHoklch(61.59% 0.12 281.2)
XYZxyz(25.7445, 22.5416, 59.4828)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BCB #CBC979
analogous
#79A4CB #797BCB #A079CB
triadic
#797BCB #CB797B #7BCB79
tetradic
#797BCB #CB79A4 #CBC979 #79CBA0
square
#797BCB #CB79A4 #CBC979 #79CBA0
split-complementary
#797BCB #CBA079 #A4CB79
monochromatic
#383B91 #4D50BA #797BCB #A5A6DC #D1D2ED

Accessibility & contrast

On white

3.81
#797BCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#797BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BCB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BCB#FFFFFF#000000##000000
##797BCB1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F86CE
Deuteranopia (green-blind)
#5B80C9
Tritanopia (blue-blind)
#608B99
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797bcb;
/* rgb */ color: rgb(121, 123, 203);
/* oklch */ color: oklch(61.6% 0.120 281.2);
Tailwind
colors: {
  custom: {
    50: '#a3a1db',
    500: '#797bcb',
    950: '#000000',
  },
}
SCSS
$custom: #797bcb;
$custom-light: #a3a1db;
$custom-dark: #000000;
JSON
{
  "hex": "#797bcb",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 203
  },
  "hsl": {
    "h": 238.537,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61594,
    "c": 0.11984,
    "h": 281.2
  },
  "luminance": 0.22543
}

Semantic roles & 50–950 ramp

primary
#797BCB
secondary
#DEDEC1
accent
#B42EB7
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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