#797FCF#797FCF

#797FCF is a light, moderate blue. Relative luminance 0.237; OKLCH L 62.6% C 0.120 H 279.1°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#797FCF
RGBrgb(121, 127, 207)
HSLhsl(236, 47%, 64%)
HSVhsv(236, 42%, 81%)
CMYKcmyk(41.5%, 38.6%, 0%, 18.8%)
CIE-LABlab(55.83, 17.97, -42.09)
CIE-LCHlch(55.83, 45.77, 293.12°)
OKLaboklab(62.61% 0.0189 -0.1185)
OKLCHoklch(62.61% 0.12 279.1)
XYZxyz(26.7337, 23.7475, 62.1945)
Luminance0.2375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FCF #CFC979
analogous
#79AACF #797FCF #9E79CF
triadic
#797FCF #CF797F #7FCF79
tetradic
#797FCF #CF79AA #CFC979 #79CF9E
square
#797FCF #CF79AA #CFC979 #79CF9E
split-complementary
#797FCF #CF9E79 #AACF79
monochromatic
#363D97 #4C54BF #797FCF #A6AADF #D3D5EF

Accessibility & contrast

On white

3.65
#797FCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#797FCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FCF
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FCF#FFFFFF#000000##000000
##797FCF1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6389D2
Deuteranopia (green-blind)
#5D83CD
Tritanopia (blue-blind)
#5E8F9D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797fcf;
/* rgb */ color: rgb(121, 127, 207);
/* oklch */ color: oklch(62.6% 0.120 279.1);
Tailwind
colors: {
  custom: {
    50: '#a3a4de',
    500: '#797fcf',
    950: '#000000',
  },
}
SCSS
$custom: #797fcf;
$custom-light: #a3a4de;
$custom-dark: #000000;
JSON
{
  "hex": "#797fcf",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 207
  },
  "hsl": {
    "h": 235.814,
    "s": 47.253,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62606,
    "c": 0.11996,
    "h": 279.1
  },
  "luminance": 0.23749
}

Semantic roles & 50–950 ramp

primary
#797FCF
secondary
#E1DFC3
accent
#B02BBB
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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