#797BCD#797BCD

#797BCD is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.7% C 0.123 H 281.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#797BCD
RGBrgb(121, 123, 205)
HSLhsl(239, 46%, 64%)
HSVhsv(239, 41%, 80%)
CMYKcmyk(41%, 40%, 0%, 19.6%)
CIE-LABlab(54.70, 19.78, -42.75)
CIE-LCHlch(54.70, 47.11, 294.83°)
OKLaboklab(61.7% 0.0236 -0.1204)
OKLCHoklch(61.7% 0.123 281.1)
XYZxyz(25.9844, 22.6376, 60.7461)
Luminance0.2264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BCD #CDCB79
analogous
#79A5CD #797BCD #A179CD
triadic
#797BCD #CD797B #7BCD79
tetradic
#797BCD #CD79A5 #CDCB79 #79CDA1
square
#797BCD #CD79A5 #CDCB79 #79CDA1
split-complementary
#797BCD #CDA179 #A5CD79
monochromatic
#373A94 #4C4FBC #797BCD #A6A7DE #D2D3EE

Accessibility & contrast

On white

3.80
#797BCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#797BCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BCD
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BCD#FFFFFF#000000##000000
##797BCD1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E86D0
Deuteranopia (green-blind)
#5A80CB
Tritanopia (blue-blind)
#608B9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797bcd;
/* rgb */ color: rgb(121, 123, 205);
/* oklch */ color: oklch(61.7% 0.123 281.1);
Tailwind
colors: {
  custom: {
    50: '#a3a1dc',
    500: '#797bcd',
    950: '#000000',
  },
}
SCSS
$custom: #797bcd;
$custom-light: #a3a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797bcd",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 205
  },
  "hsl": {
    "h": 238.571,
    "s": 45.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61704,
    "c": 0.1227,
    "h": 281.1
  },
  "luminance": 0.22639
}

Semantic roles & 50–950 ramp

primary
#797BCD
secondary
#E0DFC2
accent
#B62DB9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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