#797DC0#797DC0

#797DC0 is a mid, moderate blue. Relative luminance 0.225; OKLCH L 61.4% C 0.101 H 280.4°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#797DC0
RGBrgb(121, 125, 192)
HSLhsl(237, 36%, 61%)
HSVhsv(237, 37%, 75%)
CMYKcmyk(37%, 34.9%, 0%, 24.7%)
CIE-LABlab(54.59, 14.93, -35.52)
CIE-LCHlch(54.59, 38.53, 292.79°)
OKLaboklab(61.42% 0.0182 -0.0994)
OKLCHoklch(61.42% 0.101 280.4)
XYZxyz(24.7305, 22.5370, 52.9060)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC0 #C0BC79
analogous
#79A1C0 #797DC0 #9979C0
triadic
#797DC0 #C0797D #7DC079
tetradic
#797DC0 #C079A1 #C0BC79 #79C099
square
#797DC0 #C079A1 #C0BC79 #79C099
split-complementary
#797DC0 #C09979 #A1C079
monochromatic
#3D4182 #5156AB #797DC0 #A3A5D4 #CCCEE7

Accessibility & contrast

On white

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

On black

5.51
#797DC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DC0
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DC0#FFFFFF#000000##000000
##797DC01.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6785C3
Deuteranopia (green-blind)
#6480BE
Tritanopia (blue-blind)
#658A96
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797dc0;
/* rgb */ color: rgb(121, 125, 192);
/* oklch */ color: oklch(61.4% 0.101 280.4);
Tailwind
colors: {
  custom: {
    50: '#a2a2d3',
    500: '#797dc0',
    950: '#000000',
  },
}
SCSS
$custom: #797dc0;
$custom-light: #a2a2d3;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc0",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 192
  },
  "hsl": {
    "h": 236.62,
    "s": 36.041,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61418,
    "c": 0.10104,
    "h": 280.4
  },
  "luminance": 0.22538
}

Semantic roles & 50–950 ramp

primary
#797DC0
secondary
#D8D6BD
accent
#A837AF
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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