#797CCB#797CCB

#797CCB is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.8% C 0.118 H 280.7°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#797CCB
RGBrgb(121, 124, 203)
HSLhsl(238, 44%, 64%)
HSVhsv(238, 40%, 80%)
CMYKcmyk(40.4%, 38.9%, 0%, 20.4%)
CIE-LABlab(54.86, 18.61, -41.37)
CIE-LCHlch(54.86, 45.36, 294.23°)
OKLaboklab(61.79% 0.022 -0.1164)
OKLCHoklch(61.79% 0.118 280.7)
XYZxyz(25.8692, 22.7910, 59.5244)
Luminance0.2279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CCB #CBC879
analogous
#79A5CB #797CCB #9F79CB
triadic
#797CCB #CB797C #7CCB79
tetradic
#797CCB #CB79A5 #CBC879 #79CB9F
square
#797CCB #CB79A5 #CBC879 #79CB9F
split-complementary
#797CCB #CB9F79 #A5CB79
monochromatic
#383C91 #4D51BA #797CCB #A5A7DC #D1D2ED

Accessibility & contrast

On white

3.78
#797CCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#797CCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CCB
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CCB#FFFFFF#000000##000000
##797CCB1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6186CE
Deuteranopia (green-blind)
#5C80C9
Tritanopia (blue-blind)
#608C9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ccb;
/* rgb */ color: rgb(121, 124, 203);
/* oklch */ color: oklch(61.8% 0.118 280.7);
Tailwind
colors: {
  custom: {
    50: '#a3a1db',
    500: '#797ccb',
    950: '#000000',
  },
}
SCSS
$custom: #797ccb;
$custom-light: #a3a1db;
$custom-dark: #000000;
JSON
{
  "hex": "#797ccb",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 203
  },
  "hsl": {
    "h": 237.805,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61793,
    "c": 0.11841,
    "h": 280.7
  },
  "luminance": 0.22792
}

Semantic roles & 50–950 ramp

primary
#797CCB
secondary
#DEDDC1
accent
#B22EB7
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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