#797CCC#797CCC

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

Color values

HEX#797CCC
RGBrgb(121, 124, 204)
HSLhsl(238, 45%, 64%)
HSVhsv(238, 41%, 80%)
CMYKcmyk(40.7%, 39.2%, 0%, 20%)
CIE-LABlab(54.91, 18.90, -41.86)
CIE-LCHlch(54.91, 45.93, 294.30°)
OKLaboklab(61.85% 0.0222 -0.1178)
OKLCHoklch(61.85% 0.12 280.6)
XYZxyz(25.9887, 22.8388, 60.1540)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CCC #CCC979
analogous
#79A5CC #797CCC #9F79CC
triadic
#797CCC #CC797C #7CCC79
tetradic
#797CCC #CC79A5 #CCC979 #79CC9F
square
#797CCC #CC79A5 #CCC979 #79CC9F
split-complementary
#797CCC #CC9F79 #A5CC79
monochromatic
#383B93 #4D51BB #797CCC #A5A7DD #D2D3EE

Accessibility & contrast

On white

3.77
#797CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#797CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CCC
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CCC#FFFFFF#000000##000000
##797CCC1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6086CF
Deuteranopia (green-blind)
#5C81CA
Tritanopia (blue-blind)
#608C9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ccc;
/* rgb */ color: rgb(121, 124, 204);
/* oklch */ color: oklch(61.8% 0.120 280.6);
Tailwind
colors: {
  custom: {
    50: '#a3a1dc',
    500: '#797ccc',
    950: '#000000',
  },
}
SCSS
$custom: #797ccc;
$custom-light: #a3a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797ccc",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 204
  },
  "hsl": {
    "h": 237.831,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61847,
    "c": 0.11985,
    "h": 280.6
  },
  "luminance": 0.2284
}

Semantic roles & 50–950 ramp

primary
#797CCC
secondary
#DFDEC2
accent
#B32DB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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