#797ACA#797ACA

#797ACA is a mid, moderate blue. Relative luminance 0.222; OKLCH L 61.3% C 0.120 H 281.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#797ACA
RGBrgb(121, 122, 202)
HSLhsl(239, 43%, 63%)
HSVhsv(239, 40%, 79%)
CMYKcmyk(40.1%, 39.6%, 0%, 20.8%)
CIE-LABlab(54.29, 19.52, -41.70)
CIE-LCHlch(54.29, 46.04, 295.09°)
OKLaboklab(61.34% 0.0244 -0.1173)
OKLCHoklch(61.34% 0.12 281.7)
XYZxyz(25.5023, 22.2473, 58.8161)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ACA #CAC979
analogous
#79A2CA #797ACA #A079CA
triadic
#797ACA #CA797A #7ACA79
tetradic
#797ACA #CA79A2 #CAC979 #79CAA0
square
#797ACA #CA79A2 #CAC979 #79CAA0
split-complementary
#797ACA #CAA079 #A2CA79
monochromatic
#393A90 #4D4EB9 #797ACA #A5A6DB #D1D1ED

Accessibility & contrast

On white

3.85
#797ACA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#797ACA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ACA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ACA#FFFFFF#000000##000000
##797ACA1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E85CD
Deuteranopia (green-blind)
#5A7FC8
Tritanopia (blue-blind)
#618A98
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797aca;
/* rgb */ color: rgb(121, 122, 202);
/* oklch */ color: oklch(61.3% 0.120 281.7);
Tailwind
colors: {
  custom: {
    50: '#a3a0da',
    500: '#797aca',
    950: '#000000',
  },
}
SCSS
$custom: #797aca;
$custom-light: #a3a0da;
$custom-dark: #000000;
JSON
{
  "hex": "#797aca",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 202
  },
  "hsl": {
    "h": 239.259,
    "s": 43.316,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61342,
    "c": 0.11982,
    "h": 281.7
  },
  "luminance": 0.22248
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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