#797BCA#797BCA

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

Color values

HEX#797BCA
RGBrgb(121, 123, 202)
HSLhsl(239, 43%, 63%)
HSVhsv(239, 40%, 79%)
CMYKcmyk(40.1%, 39.1%, 0%, 20.8%)
CIE-LABlab(54.55, 18.93, -41.29)
CIE-LCHlch(54.55, 45.42, 294.63°)
OKLaboklab(61.54% 0.0231 -0.1161)
OKLCHoklch(61.54% 0.118 281.2)
XYZxyz(25.6257, 22.4941, 58.8572)
Luminance0.2250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BCA #CAC879
analogous
#79A3CA #797BCA #9F79CA
triadic
#797BCA #CA797B #7BCA79
tetradic
#797BCA #CA79A3 #CAC879 #79CA9F
square
#797BCA #CA79A3 #CAC879 #79CA9F
split-complementary
#797BCA #CA9F79 #A3CA79
monochromatic
#393B90 #4D50B9 #797BCA #A5A6DB #D1D1ED

Accessibility & contrast

On white

3.82
#797BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#797BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BCA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BCA#FFFFFF#000000##000000
##797BCA1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6085CD
Deuteranopia (green-blind)
#5C80C8
Tritanopia (blue-blind)
#618B99
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797bca;
/* rgb */ color: rgb(121, 123, 202);
/* oklch */ color: oklch(61.5% 0.118 281.2);
Tailwind
colors: {
  custom: {
    50: '#a3a1da',
    500: '#797bca',
    950: '#000000',
  },
}
SCSS
$custom: #797bca;
$custom-light: #a3a1da;
$custom-dark: #000000;
JSON
{
  "hex": "#797bca",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 202
  },
  "hsl": {
    "h": 238.519,
    "s": 43.316,
    "l": 63.333
  },
  "oklch": {
    "l": 0.6154,
    "c": 0.1184,
    "h": 281.2
  },
  "luminance": 0.22495
}

Semantic roles & 50–950 ramp

primary
#797BCA
secondary
#DEDDC1
accent
#B32FB6
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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