#797BCC#797BCC

#797BCC is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.6% C 0.121 H 281.1°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#797BCC
RGBrgb(121, 123, 204)
HSLhsl(239, 45%, 64%)
HSVhsv(239, 41%, 80%)
CMYKcmyk(40.7%, 39.7%, 0%, 20%)
CIE-LABlab(54.65, 19.50, -42.27)
CIE-LCHlch(54.65, 46.55, 294.76°)
OKLaboklab(61.65% 0.0235 -0.119)
OKLCHoklch(61.65% 0.121 281.1)
XYZxyz(25.8640, 22.5894, 60.1125)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BCC #CCCA79
analogous
#79A4CC #797BCC #A079CC
triadic
#797BCC #CC797B #7BCC79
tetradic
#797BCC #CC79A4 #CCCA79 #79CCA0
square
#797BCC #CC79A4 #CCCA79 #79CCA0
split-complementary
#797BCC #CCA079 #A4CC79
monochromatic
#383A93 #4D4FBB #797BCC #A5A7DD #D2D2EE

Accessibility & contrast

On white

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

On black

5.52
#797BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BCC
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BCC#FFFFFF#000000##000000
##797BCC1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F86CF
Deuteranopia (green-blind)
#5A80CA
Tritanopia (blue-blind)
#608B9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797bcc;
/* rgb */ color: rgb(121, 123, 204);
/* oklch */ color: oklch(61.6% 0.121 281.1);
Tailwind
colors: {
  custom: {
    50: '#a3a1dc',
    500: '#797bcc',
    950: '#000000',
  },
}
SCSS
$custom: #797bcc;
$custom-light: #a3a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797bcc",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 204
  },
  "hsl": {
    "h": 238.554,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61649,
    "c": 0.12127,
    "h": 281.1
  },
  "luminance": 0.2259
}

Semantic roles & 50–950 ramp

primary
#797BCC
secondary
#DFDEC2
accent
#B52DB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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