#797DCD#797DCD

#797DCD is a light, moderate blue. Relative luminance 0.231; OKLCH L 62.1% C 0.120 H 280.1°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#797DCD
RGBrgb(121, 125, 205)
HSLhsl(237, 46%, 64%)
HSVhsv(237, 41%, 80%)
CMYKcmyk(41%, 39%, 0%, 19.6%)
CIE-LABlab(55.22, 18.59, -41.94)
CIE-LCHlch(55.22, 45.87, 293.91°)
OKLaboklab(62.1% 0.0211 -0.118)
OKLCHoklch(62.1% 0.12 280.1)
XYZxyz(26.2350, 23.1388, 60.8297)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DCD #CDC979
analogous
#79A7CD #797DCD #9F79CD
triadic
#797DCD #CD797D #7DCD79
tetradic
#797DCD #CD79A7 #CDC979 #79CD9F
square
#797DCD #CD79A7 #CDC979 #79CD9F
split-complementary
#797DCD #CD9F79 #A7CD79
monochromatic
#373C94 #4C52BC #797DCD #A6A8DE #D2D3EE

Accessibility & contrast

On white

3.73
#797DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#797DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DCD
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DCD#FFFFFF#000000##000000
##797DCD1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187D0
Deuteranopia (green-blind)
#5C81CB
Tritanopia (blue-blind)
#5F8D9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797dcd;
/* rgb */ color: rgb(121, 125, 205);
/* oklch */ color: oklch(62.1% 0.120 280.1);
Tailwind
colors: {
  custom: {
    50: '#a3a2dc',
    500: '#797dcd',
    950: '#000000',
  },
}
SCSS
$custom: #797dcd;
$custom-light: #a3a2dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797dcd",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 205
  },
  "hsl": {
    "h": 237.143,
    "s": 45.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.621,
    "c": 0.11988,
    "h": 280.1
  },
  "luminance": 0.2314
}

Semantic roles & 50–950 ramp

primary
#797DCD
secondary
#E0DEC2
accent
#B22DB9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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