#797CCD#797CCD

#797CCD is a mid, vivid blue. Relative luminance 0.229; OKLCH L 61.9% C 0.121 H 280.6°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#797CCD
RGBrgb(121, 124, 205)
HSLhsl(238, 46%, 64%)
HSVhsv(238, 41%, 80%)
CMYKcmyk(41%, 39.5%, 0%, 19.6%)
CIE-LABlab(54.96, 19.18, -42.35)
CIE-LCHlch(54.96, 46.49, 294.37°)
OKLaboklab(61.9% 0.0223 -0.1192)
OKLCHoklch(61.9% 0.121 280.6)
XYZxyz(26.1090, 22.8869, 60.7877)
Luminance0.2289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CCD #CDCA79
analogous
#79A6CD #797CCD #A079CD
triadic
#797CCD #CD797C #7CCD79
tetradic
#797CCD #CD79A6 #CDCA79 #79CDA0
square
#797CCD #CD79A6 #CDCA79 #79CDA0
split-complementary
#797CCD #CDA079 #A6CD79
monochromatic
#373B94 #4C50BC #797CCD #A6A8DE #D2D3EE

Accessibility & contrast

On white

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

On black

5.58
#797CCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CCD
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CCD#FFFFFF#000000##000000
##797CCD1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6087D0
Deuteranopia (green-blind)
#5B81CB
Tritanopia (blue-blind)
#5F8C9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ccd;
/* rgb */ color: rgb(121, 124, 205);
/* oklch */ color: oklch(61.9% 0.121 280.6);
Tailwind
colors: {
  custom: {
    50: '#a3a1dc',
    500: '#797ccd',
    950: '#000000',
  },
}
SCSS
$custom: #797ccd;
$custom-light: #a3a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797ccd",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 205
  },
  "hsl": {
    "h": 237.857,
    "s": 45.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61901,
    "c": 0.12129,
    "h": 280.6
  },
  "luminance": 0.22888
}

Semantic roles & 50–950 ramp

primary
#797CCD
secondary
#E0DFC2
accent
#B42DB9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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