#797BCF#797BCF

#797BCF is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.8% C 0.126 H 281.0°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#797BCF
RGBrgb(121, 123, 207)
HSLhsl(239, 47%, 64%)
HSVhsv(239, 42%, 81%)
CMYKcmyk(41.5%, 40.6%, 0%, 18.8%)
CIE-LABlab(54.80, 20.35, -43.73)
CIE-LCHlch(54.80, 48.23, 294.96°)
OKLaboklab(61.81% 0.024 -0.1232)
OKLCHoklch(61.81% 0.126 281)
XYZxyz(26.2273, 22.7347, 62.0257)
Luminance0.2274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BCF #CFCD79
analogous
#79A6CF #797BCF #A279CF
triadic
#797BCF #CF797B #7BCF79
tetradic
#797BCF #CF79A6 #CFCD79 #79CFA2
square
#797BCF #CF79A6 #CFCD79 #79CFA2
split-complementary
#797BCF #CFA279 #A6CF79
monochromatic
#363897 #4C4FBF #797BCF #A6A7DF #D3D4EF

Accessibility & contrast

On white

3.79
#797BCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#797BCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BCF
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BCF#FFFFFF#000000##000000
##797BCF1.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D86D2
Deuteranopia (green-blind)
#5880CD
Tritanopia (blue-blind)
#5F8C9B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797bcf;
/* rgb */ color: rgb(121, 123, 207);
/* oklch */ color: oklch(61.8% 0.126 281.0);
Tailwind
colors: {
  custom: {
    50: '#a3a1de',
    500: '#797bcf',
    950: '#000000',
  },
}
SCSS
$custom: #797bcf;
$custom-light: #a3a1de;
$custom-dark: #000000;
JSON
{
  "hex": "#797bcf",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 207
  },
  "hsl": {
    "h": 238.605,
    "s": 47.253,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61814,
    "c": 0.12556,
    "h": 281
  },
  "luminance": 0.22736
}

Semantic roles & 50–950 ramp

primary
#797BCF
secondary
#E1E0C3
accent
#B72BBB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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